Skip to content

Instantly share code, notes, and snippets.

@codeslinger
Created March 4, 2024 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeslinger/88dce9530ab98ac6c631db7ad69260ac to your computer and use it in GitHub Desktop.
Save codeslinger/88dce9530ab98ac6c631db7ad69260ac to your computer and use it in GitHub Desktop.
gitconfig
[user]
name = Toby DiPasquale
email = xxx
[alias]
co = checkout
ci = commit
st = status
pu = push
pl = pull
b = branch
pub = "!f() { git push ${1:-origin} `git symbolic-ref HEAD`; }; f"
pul = "!f() { git pull ${1:-origin} `git symbolic-ref HEAD`; }; f"
pp = pull -p
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
lg = log --color --graph --pretty=format:'%C(cyan)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue) <%an>%Creset' --abbrev-commit
ll = log --stat --abbrev-commit
d = diff --color-words
rl = reflog
df = diff
dfc = diff --cached
hist = log --oneline --graph --decorate
s = status -s
[web]
browser = open
[color]
branch = auto
diff = auto
status = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = matching
[core]
deltaBaseCacheLimit = 1G
[pull]
ff = only
[init]
defaultBranch = main
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment