Skip to content

Instantly share code, notes, and snippets.

@maurom
Created July 1, 2022 16:57
Show Gist options
  • Save maurom/c7b409d1e925ded11e0324f14165b356 to your computer and use it in GitHub Desktop.
Save maurom/c7b409d1e925ded11e0324f14165b356 to your computer and use it in GitHub Desktop.
My personal ~/.gitconfig file
[core]
autocrlf = input
[user]
name = Mauro A. Meloni
email = [email protected]
# the following is only available on git 2.35+
# signingkey = ssh-ed25519 ...
[pull]
ff = only
[alias]
ignore = update-index --assume-unchanged --
unignore = update-index --no-assume-unchanged --
ignored = !git ls-files -v | grep "^[[:lower:]]"
stashtus = stash list --name-status
stashdif = stash show -p
# stashdif = stash show
cached = diff --cached
ready = diff --cached
unstage = restore --staged
soft-undo = !git show $1 | git apply -R
co = checkout
sw = switch
[commit]
# gpgsign = true
[gpg]
# the following is only available on git 2.35+
# format = ssh
[merge]
conflictstyle = diff3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment