Skip to content

Instantly share code, notes, and snippets.

@gafda
Last active April 19, 2024 13:57
Show Gist options
  • Save gafda/23ada29bd7a404c1e511fea6e0b8fb23 to your computer and use it in GitHub Desktop.
Save gafda/23ada29bd7a404c1e511fea6e0b8fb23 to your computer and use it in GitHub Desktop.
GIT Config file in windows format
[user]
name = <first> <last name>
email = <my-email>@<corp>
signingKey = ssh-ed25519 mYaWsOmEsUpErKey <my-email>@<corp>
[alias]
st = status
ls = log --pretty=format:'%C(yellow)%h%Creset %s %Cgreen(%cr)%\Creset %Cred%d%Creset' --abbrev-commit --date=relative
tl = log --tags --simplify-by-decoration --pretty='format:%ai %d'
tree1 = log --graph --full-history --all --color --date=short --pretty=format:'%Cred%x09%h %Creset%ad%C(bold yellow)%d %C(dim cyan) %s %C(reset)(%an)%Creset'
tree2 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
tree = !"git tree1"
conflicts=diff --name-only --diff-filter=U
[winUpdater]
recentlySeenVersion = 2.41.0.windows.3
[credential]
helper = wincred
[core]
editor = vim
autocrlf = false
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[tag]
gpgsign = true
[gpg "ssh"]
allowedSignersFile = C:/Users/<user>/.ssh/allowed_signers
[commit]
gpgSign = true
[gpg]
format = ssh
[credential "https://github.com"]
username = <github-username>
[column]
ui = auto
[branch]
sort = -committerdate
[color]
ui = auto
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment