Skip to content

Instantly share code, notes, and snippets.

@rahulrajaram
Created October 19, 2020 00:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulrajaram/4a3bd662498aa4b7b84f93de1b1f634b to your computer and use it in GitHub Desktop.
Save rahulrajaram/4a3bd662498aa4b7b84f93de1b1f634b to your computer and use it in GitHub Desktop.
Git Aliases
alias gbr="git branch"
alias gap="git add -p"
alias gca="git commit --amend"
alias gco="git checkout"
alias gcp="git cherry-pick"
alias gcom="git checkout master"
alias gdc="git diff --cached"
alias gmv="git mv"
alias gpo="git pull origin"
alias gpl="git pull"
alias gpfo="git push -f origin "
alias gpf="git push -f"
alias gprom="git pull --rebase origin master"
alias gpro="git pull --rebase origin "
alias gpu="git push"
alias gpuoh="git push -u origin HEAD"
alias gri="git rebase -i "
alias gro="git rebase --onto "
alias grc="git rebase --continue"
alias gs="git status"
alias gskip="git rebase --skip"
alias gl="git log --oneline"
alias gll="git log --stat -p"
alias gct="git commit"
alias gcomm="git commit -m "
alias gcoma="git commit --amend"
alias grs="git reset --soft HEAD~1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment