Skip to content

Instantly share code, notes, and snippets.

@xtbl
Last active January 30, 2017 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xtbl/e92b35da52d08b94ac82 to your computer and use it in GitHub Desktop.
Save xtbl/e92b35da52d08b94ac82 to your computer and use it in GitHub Desktop.
Git Aliases
[user]
name = abc
email = abc
[alias]
co = checkout
fum = !git fetch upstream && git merge upstream/dev
addcom = !git add -A && git commit -m
st = status
codomain = !git checkout src/app/components/common/constants/domains/domains.js
removeallbranches = git branch | grep -v "master" | xargs git branch -D
# removes all branches in repo except master and the current branch
cleanbranches = git branch | egrep -v "(master|\*)" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment