Skip to content

Instantly share code, notes, and snippets.

@xperienced
Last active June 6, 2016 10:01
Show Gist options
  • Save xperienced/6445aee7a68ac5cdd980 to your computer and use it in GitHub Desktop.
Save xperienced/6445aee7a68ac5cdd980 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
cp = cherry-pick
st = status
ci = commit
br = branch
co = checkout
cob = checkout -b
df = diff
lg = log --graph --oneline --all --decorate
cm = !git add -A && git commit -m
branch-name = !git symbolic-ref --short HEAD
publish = "!git push -u origin $(git branch-name)"
unpublish = "!git push origin :$(git branch-name)"
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
purr = pull --rebase
puff = pull --ff-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment