Last active
March 28, 2021 22:05
-
-
Save brotoo25/d254f6bc39916ae3f8f4f3eef612bbe7 to your computer and use it in GitHub Desktop.
My Git Aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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