Skip to content

Instantly share code, notes, and snippets.

@chadly
Last active August 26, 2022 15:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadly/8677437 to your computer and use it in GitHub Desktop.
Save chadly/8677437 to your computer and use it in GitHub Desktop.
Setup global git configuration
[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