Advertisement
Guest User

Untitled

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