Last active
August 26, 2022 15:06
-
-
Save chadly/8677437 to your computer and use it in GitHub Desktop.
Setup global git configuration
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
[core] | |
editor = code --wait | |
[user] | |
name = Chad Lee | |
email = git@chadly.net | |
[pull] | |
rebase = true | |
[push] | |
default = upstream | |
autoSetupRemote = true | |
[fetch] | |
prune = true | |
[alias] | |
lg = log --graph --abbrev-commit --decorate --date=relative --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(bold yellow)%d%C(reset)' --all | |
ac = !git add -A && sgc | |
ca = commit -a --amend --no-edit | |
home = !git stash -u && git checkout master && git fetch --prune && git pull | |
fresh = !git home && git clean -dfx | |
[credential] | |
helper = store | |
[diff] | |
tool = bc3 | |
[difftool] | |
prompt = false | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE | |
[difftool "bc3"] | |
trustExitCode = true | |
[merge] | |
tool = bc3 | |
[mergetool "bc3"] | |
trustExitCode = true | |
[mergetool] | |
keepBackup = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment