Skip to content

Instantly share code, notes, and snippets.

@brotoo25
Last active March 28, 2021 22:05
Show Gist options
  • Save brotoo25/d254f6bc39916ae3f8f4f3eef612bbe7 to your computer and use it in GitHub Desktop.
Save brotoo25/d254f6bc39916ae3f8f4f3eef612bbe7 to your computer and use it in GitHub Desktop.
My Git Aliases
[alias]
s = status
unstage = reset HEAD --
undo = reset HEAD~1 --mixed
done = !git push origin HEAD
get = !git pull origin HEAD
go = checkout
back = checkout -
del = branch -D
new = checkout -b
amend = commit --amend --no-edit
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
lg = log --oneline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment