Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias guntrack='git update-index --assume-unchanged'
- alias gtrack='git update-index --no-assume-unchanged'
- alias gco='git checkout'
- alias gs='git status'
- alias gl='git log'
- ## Git log version 1
- 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"
- ## Git log version 2
- alias gl2='git log --graph --pretty=oneline --abbrev-commit'
- ## Git log version 3
- alias gl3='git log --pretty=format:"%ad %h by %an, %s" --date=iso | sort -r | less'
- ## Git log version 4
- alias gl4='git log --all --decorate --oneline --graph'
- alias gd='git diff --color'
- alias gdel='git push origin --delete'
- alias gm='git merge'
- alias gpta='git push --tags'
- alias gt='git tag'
- alias gts='git tag --sort=creatordate'
- ## Delete remote tag
- alias gtd='$WORK/shelltools/private-scripts/git-delete-tag'
- alias gsu='git submodule update --init'
- alias gb='git branch'
- ## List all remotes
- alias gremotes='git remote -v'
- alias gra='git remote add'
- ## Reset all unstaged commits
- alias gr='git reset --hard'
- ## Delete last commit
- alias gdc='git reset --soft HEAD~1'
- alias gpush='$WORK/shelltools/private-scripts/git-push-pull push'
- alias gpull='$WORK/shelltools/private-scripts/git-push-pull pull'
- ## Delete all local branches that are merged
- alias gdbrances='git branch --merged | grep -v \* | xargs git branch -D'
- alias gstash='git stash save'
- alias gpop='git stash pop'
- alias grestore='git stash apply'
- alias gstashes='git stash list'
- alias gcp='git cherry-pick'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement