Skip to content

Instantly share code, notes, and snippets.

@kasperhartwich
Last active May 27, 2024 11:07
Show Gist options
  • Save kasperhartwich/dd0afc65c669ea9dd86ce525ffb3e42a to your computer and use it in GitHub Desktop.
Save kasperhartwich/dd0afc65c669ea9dd86ce525ffb3e42a to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Kasper Hartwich
email = kasperhartwich@gmail.com
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = cyan
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
ci = commit
co = checkout
cp = cherry-pick
br = branch
pr = pull --rebase
pp = pull --rebase && git push
last = log -1 HEAD
unstage = reset HEAD --
b = branch
staged = diff --cached
amend = commit --amend
uncommit = reset HEAD^
yolo = reset --hard
fire = checkout master && git merge develop && git push && git checkout develop && git push
cleanup = fetch origin --prune
[core]
excludesfile = ~/.gitignore
[push]
default = current
autoSetupRemote = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment