Aliases
Here are a bunch of Bash Aliases I like to use. I stole these from Josh Egan. He has a great Git Cheatsheet.
git config --global alias.lga "log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" git config --global alias.s "status -su" git config --global alias.pr "pull --rebase" git config --global alias.cm "commit -m" git config --global alias.cam "commit -am" git config --global alias.d "diff" git config --global alias.ds "diff --staged" git config --global alias.rpo "remote prune origin"
Commands
Here are some interesting git commands:
Simple Graph of commits: git log –graph –decorate –oneline
Leave a Reply