Some Quick tips for using
git, that I wish I knew years ago...
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:
gc="git commit", etc
- if you use
oh-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
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