Skip to content

Instantly share code, notes, and snippets.

@azimidev
Last active July 31, 2018 12:00
Show Gist options
  • Save azimidev/4d6fbc725d9c6167613eb0728039320b to your computer and use it in GitHub Desktop.
Save azimidev/4d6fbc725d9c6167613eb0728039320b to your computer and use it in GitHub Desktop.
GIT ALIASES
  • g = git
  • ga = git add
  • gaa = git add --all
  • gap = git apply
  • gapa = git add --patch
  • gau = git add --update
  • gb = git branch
  • gba = git branch -a
  • gbd = git branch -d
  • gbl = git blame -b -w
  • gbnm = git branch --no-merged
  • gbr = git branch --remote
  • gc = git commit -v
  • gca = git commit -v -a
  • gcam = git commit -a -m
  • gcb = git checkout -b
  • gcd = git checkout develop
  • gcm = git checkout master
  • gcf = git config --list
  • gcl = git clone --recursive
  • gclean = git clean -fd
  • gcmsg = git commit -m
  • gco = git checkout
  • gcount = git shortlog -sn
  • gcp = git cherry-pick
  • gcpa = git cherry-pick --abort
  • gcpc = git cherry-pick --continue
  • gcs = git commit -S
  • gcsm = git commit -s -m
  • gd = git diff
  • gdca = git diff --cached
  • gf = git fetch
  • gfa = git fetch --all --prune
  • gg = git gui citool
  • gga = git gui citool --amend
  • ggpull = git pull origin $(git_current_branch)
  • ggpush = git push origin $(git_current_branch)
  • ggsup = git branch --set-upstream-to=origin/$(git_current_branch)
  • gignore = git update-index --assume-unchanged
  • gignored = git ls-files -v | grep "^[[:lower:]]"
  • gl = git pull
  • gp = git push
  • glola = git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --all
  • glum = git pull upstream master
  • gm = git merge
  • gma = git merge --abort
  • gmom = git merge origin/master
  • gmt = git mergetool --no-prompt
  • gmum = git merge upstream/master
  • gpd = git push --dry-run
  • gpoat = git push origin --all && git push origin --tags
  • gpristine = git reset --hard && git clean -dfx
  • gpsup = git push --set-upstream origin $(git_current_branch)
  • gpu = git push upstream
  • gpv = git push -v
  • gr = git remote
  • gra = git remote add
  • grb = git rebase
  • grba = git rebase --abort
  • grbc = git rebase --continue
  • grbd = git rebase develop
  • grbi = git rebase -i
  • grbm = git rebase master
  • grbs = git rebase --skip
  • grep = grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}
  • grh = git reset
  • grhh = git reset --hard
  • grmv = git remote rename
  • grrm = git remote remove
  • grset = git remote set-url
  • grt = cd $(git rev-parse --show-toplevel || echo ".")
  • gru = git reset --
  • grup = git remote update
  • grv = git remote -v
  • gsb = git status -sb
  • gsd = git svn dcommit
  • gsi = git submodule init
  • gsps = git show --pretty=short --show-signature
  • gsr = git svn rebase
  • gss = git status -s
  • gst = git status
  • gsta = git stash save
  • gstaa = git stash apply
  • gstc = git stash clear
  • gstd = git stash drop
  • gstl = git stash list
  • gstp = git stash pop
  • gsts = git stash show --text
  • gsu = git submodule update
  • gts = git tag -s
  • gtv = git tag | sort -V
  • gunignore = git update-index --no-assume-unchanged
  • gunwip = git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1
  • gup = git pull --rebase
  • gupv = git pull --rebase -v
  • gwch = git whatchanged -p --abbrev-commit --pretty=medium
  • gwip = git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"
  • nah = git reset --hard && git clean -df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment