Facebook
From umamba, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 202
  1. g=git
  2. ga='git add'
  3. gaa='git add --all'
  4. gap='git apply'
  5. gapa='git add --patch'
  6. gau='git add --update'
  7. gb='git branch'
  8. gba='git branch -a'
  9. gbd='git branch -d'
  10. gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
  11. gbl='git blame -b -w'
  12. gbnm='git branch --no-merged'
  13. gbr='git branch --remote'
  14. gbs='git bisect'
  15. gbsb='git bisect bad'
  16. gbsg='git bisect good'
  17. gbsr='git bisect reset'
  18. gbss='git bisect start'
  19. gc='git commit -v'
  20. 'gc!'='git commit -v --amend'
  21. gca='git commit -v -a'
  22. 'gca!'='git commit -v -a --amend'
  23. gcam='git commit -a -m'
  24. 'gcan!'='git commit -v -a --no-edit --amend'
  25. 'gcans!'='git commit -v -a -s --no-edit --amend'
  26. gcb='git checkout -b'
  27. gcd='git checkout develop'
  28. gcf='git config --list'
  29. gcl='git clone --recursive'
  30. gclean='git clean -fd'
  31. gcm='git checkout master'
  32. gcmsg='git commit -m'
  33. 'gcn!'='git commit -v --no-edit --amend'
  34. gco='git checkout'
  35. gcount='git shortlog -sn'
  36. gcp='git cherry-pick'
  37. gcpa='git cherry-pick --abort'
  38. gcpc='git cherry-pick --continue'
  39. gcs='git commit -S'
  40. gcsm='git commit -s -m'
  41. gd='git diff'
  42. gdca='git diff --cached'
  43. gdct='git describe --tags `git rev-list --tags --max-count=1`'
  44. gdcw='git diff --cached --word-diff'
  45. gdt='git diff-tree --no-commit-id --name-only -r'
  46. gdw='git diff --word-diff'
  47. gf='git fetch'
  48. gfa='git fetch --all --prune'
  49. gfo='git fetch origin'
  50. gg='git gui citool'
  51. gga='git gui citool --amend'
  52. ggpull='git pull origin $(git_current_branch)'
  53. ggpush='git push origin $(git_current_branch)'
  54. ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
  55. ghh='git help'
  56. gignore='git update-index --assume-unchanged'
  57. gignored='git ls-files -v | grep "^[[:lower:]]"'
  58. git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
  59. github='web_search github'
  60. gk='\gitk --all --branches'
  61. gke='\gitk --all $(git log -g --pretty=%h)'
  62. gl='git pull'
  63. glg='git log --stat'
  64. glgg='git log --graph'
  65. glgga='git log --graph --decorate --all'
  66. glgm='git log --graph --max-count=10'
  67. glgp='git log --stat -p'
  68. glo='git log --oneline --decorate'
  69. glod='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'\'
  70. glods='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'\'' --date=short'
  71. glog='git log --oneline --decorate --graph'
  72. gloga='git log --oneline --decorate --graph --all'
  73. glol='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'
  74. glola='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --all'
  75. glp=_git_log_prettily
  76. glum='git pull upstream master'
  77. gm='git merge'
  78. gma='git merge --abort'
  79. gmom='git merge origin/master'
  80. gmt='git mergetool --no-prompt'
  81. gmtvim='git mergetool --no-prompt --tool=vimdiff'
  82. gmum='git merge upstream/master'
  83. gp='git push'
  84. gpd='git push --dry-run'
  85. gpoat='git push origin --all && git push origin --tags'
  86. gpristine='git reset --hard && git clean -dfx'
  87. gpsup='git push --set-upstream origin $(git_current_branch)'
  88. gpu='git push upstream'
  89. gpv='git push -v'
  90. gr='git remote'
  91. gra='git remote add'
  92. grb='git rebase'
  93. grba='git rebase --abort'
  94. grbc='git rebase --continue'
  95. grbd='git rebase develop'
  96. grbi='git rebase -i'
  97. grbm='git rebase master'
  98. grbs='git rebase --skip'
  99. grep='grep  --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
  100. grh='git reset'
  101. grhh='git reset --hard'
  102. grmv='git remote rename'
  103. grrm='git remote remove'
  104. grset='git remote set-url'
  105. grt='cd $(git rev-parse --show-toplevel || echo ".")'
  106. gru='git reset --'
  107. grup='git remote update'
  108. grv='git remote -v'
  109. gsb='git status -sb'
  110. gsd='git svn dcommit'
  111. gsi='git submodule init'
  112. gsps='git show --pretty=short --show-signature'
  113. gsr='git svn rebase'
  114. gss='git status -s'
  115. gst='git status'
  116. gsta='git stash save'
  117. gstaa='git stash apply'
  118. gstc='git stash clear'
  119. gstd='git stash drop'
  120. gstl='git stash list'
  121. gstp='git stash pop'
  122. gsts='git stash show --text'
  123. gsu='git submodule update'
  124. gts='git tag -s'
  125. gtv='git tag | sort -V'
  126. gunignore='git update-index --no-assume-unchanged'
  127. gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
  128. gup='git pull --rebase'
  129. gupv='git pull --rebase -v'
  130. gwch='git whatchanged -p --abbrev-commit --pretty=medium'
  131. gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"'
  132.