Some Quick tips for using git, that I wish I knew years ago...
#Alias git and common commands
- at a minimum, alias
g="git", it's a tool you use all the time save those keystrokes! - go further, alias common commands:
ga="git add",gst="git status",gc="git commit", etc - if you use
zsh, theoh-my-zshconfiguration framework has tons of aliases for git(and other things) - if you don't want to take a whole framework, you can checkout the aliases it sets here https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#git
#Use git stash or WIP commit messages when changing branches
git stashis a quick way to just put some changes to the side when you need to change the focus of your work