Last active
June 2, 2020 06:32
-
-
Save cottsak/413c824d93217fbb801774322410ea66 to your computer and use it in GitHub Desktop.
some useful git alias commands
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] | |
st = status # press less keys and live longer | |
co = checkout | |
ac = !git add . && git commit -am # add everything, commit and supply message | |
fukd = !git reset --hard && git checkout . && git clean -df # nuke the working directory. I just want to start again | |
coto = branch --sort=-committerdate # I want to change branches, which are my recent ones again? | |
oc = commit -a --amend -C HEAD # I just fixed a small thing that should be in my last commit | |
git = !exec git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to http://caiustheory.com/git-git-git-git-git/ for the
git = !exec git
- now I get some precious life seconds back