Guest User

Untitled

a guest
Feb 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.52 KB | None | 0 0
  1. | Alias | Command |
  2. |:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------|
  3. | g | git |
  4. | ga | git add |
  5. | gaa | git add --all |
  6. | gapa | git add --patch |
  7. | gua | git add --update |
  8. | gb | git branch |
  9. | gba | git branch -a |
  10. | gbl | git blame -b -w |
  11. | gc | git commit -v |
  12. | gc! | git commit -v --amend |
  13. | gca | git commit -v -a |
  14. | gca! | git commit -v -a --amend |
  15. | gcam | git commit -a -m |
  16. | gcan! | git commit -v -a -s --no-edit --amend |
  17. | gcs | git commit -S |
  18. | gcmsg | git commit -m |
  19. | gcl | git clone --recursive |
  20. | gco | git checkout |
  21. | gcb | git checkout -b |
  22. | gcm | git checkout master |
  23. | gcd | git checkout develop |
  24. | gcount | git shortlog -sn |
  25. | gd | git diff |
  26. | gf | git fetch |
  27. | gfa | git fetch --all --prune |
  28. | gp | git push |
  29. | gpsup | git push --set-upstream origin $(current_branch) |
  30. | gpoat | git push origin --all && git push origin --tags |
  31. | gts | git tag -s |
  32. | gl | git pull |
  33. | gup | git pull --rebase |
  34. | gupv | git pull --rebase -v |
  35. | glg | git log --stat --color |
  36. | glgg | git log --graph --color |
  37. | glgga | git log --graph --decorate --all |
  38. | glgm | git log --graph --max-count = 10 |
  39. | glgp | git log --stat --color -p |
  40. | glo | git log --oneline --decorate --color |
  41. | glog | git log --oneline --decorate --color --graph |
  42. | glol | git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
  43. | glola | git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all |
  44. | gm | git merge |
  45. | gmom | git merge origin/master |
  46. | grb | git rebase |
  47. | grbi | git rebase -i |
  48. | grbm | git rebase master |
  49. | grba | git rebase --abort |
  50. | grbc | git rebase --continue |
  51. | grbs | git rebase --skip |
  52. | gru | git reset -- |
  53. | grh | git reset HEAD |
  54. | grhh | git reset HEAD --hard |
  55. | gclean | git clean -df |
  56. | gpristine | git reset --hard && git clean -dfx |
  57. | gst | git status |
  58. | gsta | git stash save |
  59. | gstaa | git stash apply |
  60. | gstd | git stash drop |
  61. | gstl | git stash list |
  62. | gstp | git stash pop |
  63. | gstc | git stash clear |
  64. | gsts | git stash show --text |
  65. | gwip | git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--" |
  66. | gunwip | git log -n 1 \| grep -q -c "\-\-wip\-\-" && git reset HEAD~1 |
Add Comment
Please, Sign In to add comment