Created
January 13, 2024 21:01
-
-
Save unional/c2dedb310dc6315976489eb52cdf6dd9 to your computer and use it in GitHub Desktop.
My typical git config
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] | |
lo = log --oneline | |
# Push upstream | |
pu = push -u origin HEAD | |
co = checkout | |
# Purge branches deleted in remote (e.g. in GitHub) | |
pb = !git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D | |
[pull] | |
rebase = true | |
[core] | |
autocrlf = input | |
[push] | |
followTags = true | |
[rebase] | |
autostash = true | |
[init] | |
defaultBranch = main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment