SHARE
TWEET

Untitled

a guest May 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alias guntrack='git update-index --assume-unchanged'
  2. alias gtrack='git update-index --no-assume-unchanged'
  3. alias gco='git checkout'
  4. alias gs='git status'
  5. alias gl='git log'
  6. ## Git log version 1
  7. alias gl1="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --branches"
  8. ## Git log version 2
  9. alias gl2='git log --graph --pretty=oneline --abbrev-commit'
  10. ## Git log version 3
  11. alias gl3='git log --pretty=format:"%ad %h by %an, %s" --date=iso | sort -r | less'
  12. ## Git log version 4
  13. alias gl4='git log --all --decorate --oneline --graph'
  14. alias gd='git diff --color'
  15. alias gdel='git push origin --delete'
  16. alias gm='git merge'
  17. alias gpta='git push --tags'
  18. alias gt='git tag'
  19. alias gts='git tag --sort=creatordate'
  20. ## Delete remote tag
  21. alias gtd='$WORK/shelltools/private-scripts/git-delete-tag'
  22. alias gsu='git submodule update --init'
  23. alias gb='git branch'
  24. ## List all remotes
  25. alias gremotes='git remote -v'
  26. alias gra='git remote add'
  27. ## Reset all unstaged commits
  28. alias gr='git reset --hard'
  29. ## Delete last commit
  30. alias gdc='git reset --soft HEAD~1'
  31. alias gpush='$WORK/shelltools/private-scripts/git-push-pull push'
  32. alias gpull='$WORK/shelltools/private-scripts/git-push-pull pull'
  33. ## Delete all local branches that are merged
  34. alias gdbrances='git branch --merged | grep -v \* | xargs git branch -D'
  35. alias gstash='git stash save'
  36. alias gpop='git stash pop'
  37. alias grestore='git stash apply'
  38. alias gstashes='git stash list'
  39. alias gcp='git cherry-pick'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top