Skip to content

Instantly share code, notes, and snippets.

@adammyhre
Created March 17, 2024 03:05
Show Gist options
  • Save adammyhre/35b56ac10cd54783a0ee76fab7203816 to your computer and use it in GitHub Desktop.
Save adammyhre/35b56ac10cd54783a0ee76fab7203816 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
email = [email protected]
name = Your Name
[alias]
co = checkout
ct = commit
ci = commit
st = status -sb
br = branch
di = diff
unstage = reset HEAD --
undo-commit = reset --soft HEAD^
meld = difftool --dir-diff
dt = difftool --dir-diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
last = log -1 HEAD
[color]
diff = auto
status = auto
branch = auto
interactive = true
[rerere]
enabled = true
[diff]
tool = meld
[difftool "meld"]
path = "C:/Program Files/Meld/Meld.exe"
trustExitCode = false
keepBackup = false
keepTemporaries = false
[credential]
# helper = wincred
[core]
editor = \"C:\\Users\\username\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" --wait
# autocrlf = false
[pull]
rebase = false
[merge]
tool = meld
[mergetool "meld"]
path = "C:/Program Files/Meld/Meld.exe"
trustExitCode = false
keepBackup = false
keepTemporaries = false
prompt = false
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[mergetool]
keepBackup = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment