Skip to content

Instantly share code, notes, and snippets.

@evilpilaf
Forked from bradwilson/.gitconfig
Created February 16, 2018 18:29
Show Gist options
  • Save evilpilaf/e2ff045cb0dae41dc3126968424b7e95 to your computer and use it in GitHub Desktop.
Save evilpilaf/e2ff045cb0dae41dc3126968424b7e95 to your computer and use it in GitHub Desktop.
~/.config/git/config
[user]
name = Brad Wilson
email = dotnetguy@gmail.com
signingkey = 0B7BD15AD1EC5FDE
[alias]
a = add -A
abort = rebase --abort
amend = commit --amend -C HEAD
blame = blame -w -M -C
br = branch
cat = cat-file -t
ci = commit -a
co = checkout
cp = cherry-pick
d = diff -w --patience
dc = diff -w --patience --cached
df = diff --word-diff=color --word-diff-regex=. -w --patience
diff = diff --compaction-heuristic
down = pull --progress
dt = difftool
dump = cat-file -p
fh = !git log --format=format:'%C(bold cyan)%ar %C(reset) %C(green)%f' --name-status
go = rebase --continue
h = !git log --graph --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
hs = !git h --max-count=10
in = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short ..@{u}
l = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short
lg = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
mt = mergetool
out = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short @{u}..
pick = add -p
pr = !"pr() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
r = add --refresh
re = rebase
scorch = clean -xdf -e packages -e .nuget -e nuget.exe -e *.dbmdl -e *.suo -e *.user -e .vs -e .vagrant -e .dotnet -e .idea -e .vscode -e node_modules
skip = rebase --skip
st = status -sb
stats = diff --stat
tag = tag -s
undo = reset HEAD~
up = push
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
[color "branch"]
current = red bold
local = normal
remote = yellow bold
plain = normal
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
header = normal
added = red bold
updated = green bold
changed = cyan bold
untracked = cyan bold
nobranch = red bold
[commit]
gpgSign = true
[core]
longpaths = true
[diff]
tool = bc
[diff "astextplain"]
textconv = astextplain
[difftool]
prompt = false
[difftool "bc"]
trustExitCode = true
cmd = bcompare \"$LOCAL\" \"$REMOTE\"
[difftool "p4merge"]
cmd = launchp4merge \"$LOCAL\" \"$REMOTE\"
keepBackup = false
trustExitCode = false
[fetch]
prune = true
[merge]
tool = bc
[mergetool]
prompt = false
keepBackup = false
[mergetool "bc"]
trustExitCode = true
cmd = bcompare \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
[mergetool "p4merge"]
cmd = launchp4merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[pack]
packSizeLimit = 2g
[push]
default = current
[pull]
rebase = true
[rebase]
autosquash = true
[tag]
forceSignAnnotated = true
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[filter "encrypt"]
smudge = gitcrypt smudge
clean = gitcrypt clean
[diff "encrypt"]
textconv = gitcrypt diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment