Skip to content

Instantly share code, notes, and snippets.

@emanuelschmoczer
Last active July 16, 2022 16:09
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 emanuelschmoczer/d4a79396a30e16d22e4fa7755fb45c39 to your computer and use it in GitHub Desktop.
Save emanuelschmoczer/d4a79396a30e16d22e4fa7755fb45c39 to your computer and use it in GitHub Desktop.
git config (use correct email and excludesfile)
[core]
excludesfile = /Users/emanuel/.gitignore_global
pager = less -FXRS -x2
autocrlf = input
[alias]
st = status
di = diff
ch = checkout
ci = commit
br = branch
sta = stash
llog = log --date=local
flog = log --pretty=fuller --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lol = log --graph --decorate --oneline
lola = log --graph --decorate --oneline --all
blog = log origin/master... --left-right
ds = diff --staged
fixup = commit --fixup
squash = commit --squash
unstage = reset HEAD
rum = rebase master@{u}
[apply]
whitespace = nowarn
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = 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
[branch]
autosetupmerge = true
[rebase]
autosquash = true
[push]
default = simple
autoSetupRemote = true
[user]
name = Emanuel Schmoczer
email = ADD_EMAIL_HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment