Skip to content

Instantly share code, notes, and snippets.

@lkurzyniec
Last active July 4, 2024 16:18
Show Gist options
  • Save lkurzyniec/a3401ee521791c16ba151ce26fdb8b25 to your computer and use it in GitHub Desktop.
Save lkurzyniec/a3401ee521791c16ba151ce26fdb8b25 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Łukasz Kurzyniec
email = foo
[core]
autocrlf = false
safecrlf = false
excludesfile = C:\\Users\\lkurzyniec\\.gitignore_global
editor = notepad
[diff]
tool = winmerge
[merge]
tool = kdiff3
[mergetool]
keepBackup = false
[difftool "winmerge"]
cmd = 'C:/Program Files (x86)/WinMerge/WinMergeU.exe' -e \"$LOCAL\" \"$REMOTE\"
[mergetool "kdiff3"]
cmd = 'C:/Program Files/KDiff3/kdiff3.exe' \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\"
trustExitCode = true
keepBackup = false
[push]
default = simple
autoSetupRemote = true
[fetch]
prune = true
[alias]
co = checkout
cb = checkout -b
cod = checkout .
unstage = reset --
mt = mergetool
dt = difftool
b = branch
bc = branch --contains
brc = branch -r --contains
f = fetch
s = status
c = commit
camd = commit --amend
a = add
ad = add .
aa = add **
ai = add -i
rc = rebase --continue
last = difftool HEAD~1
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
qfix = "!f() { git worktree add -b \"$1\" ./fix/\"$1\" origin/develop; }; f"
develup = fetch origin develop:develop
fpush = push -f origin
amfpush = "!f() { git aa && git commit --amend --no-edit && git fpush; }; f"
ls = "!git config -l | grep alias | cut -c 7-"
[includeIf "gitdir/i:c:/git/somre_repos_folder/"]
path = .gitconfig-repos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment