Skip to content

Instantly share code, notes, and snippets.

@ekzhang
Last active June 19, 2020 01:52
Show Gist options
  • Save ekzhang/b55a107a5911ff414bab56994b596df5 to your computer and use it in GitHub Desktop.
Save ekzhang/b55a107a5911ff414bab56994b596df5 to your computer and use it in GitHub Desktop.
Git configuration file for MacOS
[user]
email = [email protected]
name = Eric Zhang
[push]
default = upstream
[merge]
conflictstyle = diff3
[color]
ui = auto
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
lg = lg-specific --all
lg-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
[core]
excludesfile = ~/.gitignore
autocrlf = input
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[credential]
helper = osxkeychain
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment