This is a draft cheat sheet. It is a work in progress and is not finished yet.
Checkout
gco |
git checkout |
gcb |
git checkout -b |
Commit
gc |
git commit -v |
gca |
git commit -v -a |
gcam |
git commit -a -m |
Branch
gb |
git branch |
gbd |
git branch -d |
|
|
Merge
gmom |
git merge origin/master |
Rebase
grbi |
git rebase -i |
grbs |
git rebase --skip |
grbc |
git rebase --continue |
grba |
git rebase --abort |
Stash
gstl |
git stash list |
gsta |
git stash save |
gstd |
git stash drop |
gstp |
git stash pop |
Push
gp |
git push |
gpsup |
git push --set-upstream origin $(git_current_branch) |
|