Skip to content

Instantly share code, notes, and snippets.

@noorulain17
Created November 5, 2019 11:31
Show Gist options
  • Save noorulain17/ac58bd5999b54c6ca5f0d8ac659f08d2 to your computer and use it in GitHub Desktop.
Save noorulain17/ac58bd5999b54c6ca5f0d8ac659f08d2 to your computer and use it in GitHub Desktop.
alias gb='git branch'
alias gbd='git branch -D'
alias gbr='git branch -m'
alias grb='git branch -r'
alias gba='git branch -all'
alias gbru='git remote update origin --prune'
alias gf='git fetch'
alias gp='git pull'
alias gpf='git push -f'
alias gpo='git push -u origin'
alias grh='git reset HEAD~1'
alias grhb='git reset 'HEAD@{1}''
alias ghr='git reset --hard'
alias gcs='git clean -n'
alias gcf='git clean -f'
alias gcr='git clean -f -d android/app/src/main/res'
alias gc='git checkout'
alias gcp='git checkout -'
alias gnb='git checkout -b'
alias gc65='git checkout V-6.5-MA-3163'
alias gn65='git checkout V-6.5-MA-3163; git checkout -b'
alias gp65='git fetch origin V-6.5-MA-3163:V-6.5-MA-3163'
alias gs='git status'
alias gl='git log --oneline'
alias gss='git status --short --branch'
alias glc='git log --name-status HEAD^..HEAD'
alias glf='git log --pretty=format:"%h - %an, %ar : %s"'
alias gr='git rebase'
alias gr65='git rebase V-6.5-MA-3163'
alias grc='git rebase --continue'
alias gra='git rebase --abort'
alias grs='git rebase --skip'
alias ga='git add .'
alias gcm='git commit -m'
alias gac='git commit --amend --no-edit'
alias gst='git stash'
alias gsp='git stash pop'
alias gsc='git stash clear'
alias guo='git remote update origin --prune'
alias gca='git branch | grep -v "master" | xargs git branch -D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment