Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. g=git
  2. ga='git add'
  3. gaa='git add --all'
  4. gapa='git add --patch'
  5. gb='git branch'
  6. gba='git branch -a'
  7. gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d'
  8. gbl='git blame -b -w'
  9. gbnm='git branch --no-merged'
  10. gbr='git branch --remote'
  11. gbs='git bisect'
  12. gbsb='git bisect bad'
  13. gbsg='git bisect good'
  14. gbsr='git bisect reset'
  15. gbss='git bisect start'
  16. gc='git commit -v'
  17. 'gc!'='git commit -v --amend'
  18. gca='git commit -v -a'
  19. 'gca!'='git commit -v -a --amend'
  20. 'gcan!'='git commit -v -a -s --no-edit --amend'
  21. gcb='git checkout -b'
  22. gcf='git config --list'
  23. gcl='git clone --recursive'
  24. gclean='git reset --hard && git clean -dfx'
  25. gcm='git checkout master'
  26. gcmsg='git commit -m'
  27. gco='git checkout'
  28. gcount='git shortlog -sn'
  29. gcp='git cherry-pick'
  30. gcs='git commit -S'
  31. gd='git diff'
  32. gdca='git diff --cached'
  33. gdt='git diff-tree --no-commit-id --name-only -r'
  34. gdw='git diff --word-diff'
  35. gf='git fetch'
  36. gfa='git fetch --all --prune'
  37. gfo='git fetch origin'
  38. gg='git gui citool'
  39. gga='git gui citool --amend'
  40. ggpull='git pull origin $(current_branch)'
  41. ggpush='git push origin $(current_branch)'
  42. ggsup='git branch --set-upstream-to=origin/$(current_branch)'
  43. gignore='git update-index --assume-unchanged'
  44. gignored='git ls-files -v | grep "^[[:lower:]]"'
  45. gl='git pull'
  46. glg='git log --stat --color'
  47. glgg='git log --graph --color'
  48. glgga='git log --graph --decorate --all'
  49. glgm='git log --graph --max-count=10'
  50. glgp='git log --stat --color -p'
  51. glo='git log --oneline --decorate --color'
  52. glog='git log --oneline --decorate --color --graph'
  53. glol='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit'
  54. glola='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --all'
  55. glp=_git_log_prettily
  56. gm='git merge'
  57. gmom='git merge origin/master'
  58. gmt='git mergetool --no-prompt'
  59. gmtvim='git mergetool --no-prompt --tool=vimdiff'
  60. gmum='git merge upstream/master'
  61. gp='git push'
  62. gpd='git push --dry-run'
  63. gpoat='git push origin --all && git push origin --tags'
  64. gpu='git push upstream'
  65. gpv='git push -v'
  66. gr='git remote'
  67. gra='git remote add'
  68. grb='git rebase'
  69. grba='git rebase --abort'
  70. grbc='git rebase --continue'
  71. grbi='git rebase -i'
  72. grbm='git rebase master'
  73. grbs='git rebase --skip'
  74. grh='git reset HEAD'
  75. grhh='git reset HEAD --hard'
  76. grmv='git remote rename'
  77. grrm='git remote remove'
  78. grset='git remote set-url'
  79. grt='cd $(git rev-parse --show-toplevel || echo ".")'
  80. gru='git reset --'
  81. grup='git remote update'
  82. grv='git remote -v'
  83. gsb='git status -sb'
  84. gsi='git submodule init'
  85. gsps='git show --pretty=short --show-signature'
  86. gss='git status -s'
  87. gst='git status'
  88. gsta='git stash'
  89. gstaa='git stash apply'
  90. gstd='git stash drop'
  91. gstl='git stash list'
  92. gstp='git stash pop'
  93. gsts='git stash show --text'
  94. gsu='git submodule update'
  95. gts='git tag -s'
  96. gunignore='git update-index --no-assume-unchanged'
  97. gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
  98. gup='git pull --rebase'
  99. gupv='git pull --rebase -v'
  100. gvt='git verify-tag'
  101. gwch='git whatchanged -p --abbrev-commit --pretty=medium'
  102. gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement