Skip to content

Instantly share code, notes, and snippets.

@jartes
Created April 13, 2018 08:54
Show Gist options
  • Save jartes/b75a40fa1a5a5df8d9880df689dd73de to your computer and use it in GitHub Desktop.
Save jartes/b75a40fa1a5a5df8d9880df689dd73de to your computer and use it in GitHub Desktop.
Gitconfig
[user]
name = Your Name
email = your@email.com
[core]
autocrlf = input
[color]
ui = true
[alias]
st = status
co = checkout
br = branch
ci = commit
df = diff
dfs = diff --staged
pr = pull --rebase
save = stash save
savem = stash save --keep-index
recover = stash pop --index
recoverf = !git stash show -p | git apply && git stash drop
undo = reset --hard
h = log --graph --date=short --pretty=format:'%Cgreen%h%Creset %Cblue%ad%Creset | %s%Cgreen%d%Creset %C(yellow)[%an]%Creset'
ha = log --graph --date=short --all --pretty=format:'%Cgreen%h%Creset %Cblue%ad%Creset | %s%Cgreen%d%Creset %C(yellow)[%an]%Creset'
showf = show --pretty="format:" --name-only
[diff]
noprefix = true
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment