Skip to content

Instantly share code, notes, and snippets.

@brianbancroft
Created November 12, 2017 18:13
Show Gist options
  • Save brianbancroft/fe8df31a6e3aa37d796687dfc1a1af3f to your computer and use it in GitHub Desktop.
Save brianbancroft/fe8df31a6e3aa37d796687dfc1a1af3f to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Brian
email = hello@brianbancroft.ca
name = Brian
name = Brian
name = --repace-all
name = Brian Bancroft
[push]
default = upstream
[branch]
autosetuprebase = always
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[merge]
summary = true
tool = vimdiff
[diff]
algorithm = patience
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = blue
frag = magenta
old = red
new = green
[gc]
reflogExpire = 120
reflogExpireUnreachable = 90
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative
co = checkout
rb = rebase
rbc = rebase --continue
cp = cherry-pick
br = branch
s = status
cm = commit -m
ca = commit --amend
p = pull
pu = push
puf = push -f
ap = add --patch
psuo = push --set-upstream origin
cob = checkout -b
com = checkout master
brd = branch -D
cpc = cherry-pick —continue
[rerere]
enabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment