Alias | Command | Description |
---|---|---|
ga <file> |
git add |
Add file to index |
gaa |
git add --all |
Add all files to index |
gb |
git branch |
See all branches |
gcm |
git checkout master |
Checkout master branch |
gcd |
git checkout develop |
Checkout develop branch |
gco |
git checkout <branch> |
Checkout specified branch |
gcb |
git checkout -b <branch> |
Create specified branch |
gc |
git commit --verbose |
Commit and review changes |
gc! |
git commit --verbose --amend |
Amend last commit |
gcam <message> |
git commit --all --message |
Commit all files w/ message |
gd |
git diff |
See file differences |
gf |
git fetch |
Fetch changes from remote repo |
glg |
git log --stat |
See log w/ file changes |
ggl |
git pull origin |
Pull from origin |
ggp |
git push origin |
Push to origin |
gst |
git status |
See status |
Oh My Zsh Git Commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment