Created
May 12, 2019 08:00
-
-
Save sagrawal31/e8f49d1d8dd314ed0a9a124500b385b1 to your computer and use it in GitHub Desktop.
A list of bash aliases used at WizPanda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment