Skip to content

Instantly share code, notes, and snippets.

@lkurzyniec
Last active November 13, 2025 23:02
Show Gist options
  • Select an option

  • Save lkurzyniec/a3401ee521791c16ba151ce26fdb8b25 to your computer and use it in GitHub Desktop.

Select an option

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
[difftool "winmerge"]
cmd = 'C:/Program Files (x86)/WinMerge/WinMergeU.exe' -e \"$LOCAL\" \"$REMOTE\"
[merge]
tool = kdiff3
[mergetool "kdiff3"]
cmd = 'C:/Users/ŁukaszKurzyniec/AppData/Local/Programs/KDiff3/bin/kdiff3.exe' \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\"
[mergetool]
keepBackup = false
trustExitCode = true
[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/bc/"]
path = .gitconfig-bc
[user]
name = Łukasz Kurzyniec
# https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#use-a-pat
# Convert.ToBase64String(Encoding.UTF8.GetBytes(":PAT"));
[http "https://dev.azure.com/{organization}/{project}/_git/TF-modules"]
extraheader = AUTHORIZATION: Basic XYZ==
@lkurzyniec
Copy link
Author

# Specify SSH key for remote authentication
[core]
      sshCommand = ssh -o IdentitiesOnly=yes -i ~/.ssh/git_ed25519

# Specify SSH key for commit signing
[user]
      signingKey = ~/.ssh/git_ed25519.pub
[gpg]
      format = ssh
[commit]
      gpgsign = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment