Last active
August 29, 2015 14:20
-
-
Save 526avijitgupta/f0330898fa5be5e2f966 to your computer and use it in GitHub Desktop.
Useful oh-my-zsh git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. alias g='git' | |
2. alias gst='git status' | |
3. alias gss='git status -s' | |
4. alias gaa='git add -A' (has to be changed manually in `~/.oh-my-zsh/plugins/git/git.plugin.zsh`) | |
5. alias gau='git add -u' (has to be added manually in `~/.oh-my-zsh/plugins/git/git.plugin.zsh`) | |
6. alias gcmsg='git commit -m' | |
7. alias ggpull='git pull origin $(current_branch)' | |
8. alias ggpush='git push origin $(current_branch)' | |
9. alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' | |
10. alias gsta=`git stash` | |
11. alias gb=`git branch` | |
12. alias gd=`git diff` | |
13. alias gsta=`git stash` | |
14. alias gstaa=`git stash apply` | |
15. alias glog=`git log --oneline --decorate --color --graph` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment