Skip to content

Instantly share code, notes, and snippets.

@bc-lee
Created May 5, 2023 01:36
Show Gist options
  • Save bc-lee/e673a0361ecb634146ec99db59952e76 to your computer and use it in GitHub Desktop.
Save bc-lee/e673a0361ecb634146ec99db59952e76 to your computer and use it in GitHub Desktop.
My .gitconfig
[core]
precomposeunicode = true
autocrlf = false
[rebase]
abbreviateCommands = true
[merge]
renameLimit = 1048576
ff = no
[diff]
rebaselimit = 1048576
[pull]
ff = only
[init]
defaultBranch = master
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"
detach = "!d() { git checkout $(git rev-parse --short HEAD) ;}; d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment