Skip to content

Instantly share code, notes, and snippets.

@unional
Created January 13, 2024 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unional/c2dedb310dc6315976489eb52cdf6dd9 to your computer and use it in GitHub Desktop.
Save unional/c2dedb310dc6315976489eb52cdf6dd9 to your computer and use it in GitHub Desktop.
My typical git config
[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