Video: Improving your git efficiency using git alias (14 min)
As I mentioned in the video, I've been loving using git alias
lately... and everyone I've shared it with, seems to love the idea of it at least as well.
My current .gitconfig
is below, you can find my latest in GitHub in my dotfiles repo https://github.com/GordonBeeming/dotfiles/blob/main/.gitconfig
A command that I didn't talk about in the video, but happens to be the alias I used the most every day is my git nb new-feature
.
I'd use this when I've just commited some changes on a branch, maybe those changes have been squashed into the main/master branch and now I'm ready to make more changes. Before my alias, this is what I would normally do
It's only a couple of lines but when you are doing it a couple of times a day, it gets a little much.
So instead of these couple of lines, I can simple type
If you want to use these aliases yourself, you can grab the config from above and put it in your .gitconfig
, or you can run the below 2 commands and add them both to your .gitconfig
.
If you found any of this useful, you can join the conversation on the LinkedIn post or YouTube video
LinkedIn: https://www.linkedin.com/feed/update/urn:li:activity:7175983551631286272/