Skip to content

Instantly share code, notes, and snippets.

@dannoso
Last active February 27, 2017 09:16
Show Gist options
  • Save dannoso/c07f9f0cdcccaa2443260d169767f9ef to your computer and use it in GitHub Desktop.
Save dannoso/c07f9f0cdcccaa2443260d169767f9ef to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
name = Davide Lattanzio
email = info@dualweb.it
[push]
default = simple
[alias]
co = checkout
br = branch
brv = branch -avv
ci = commit
st = status
last = log -1 HEAD
unstage = reset HEAD --
uncommit = reset HEAD~1
conflicts = diff --name-only --diff-filter=U
unmerge = reset --merge ORIG_HEAD
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep ^[a-z]
recover = !git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d' ' -f3 | xargs -n 1 git log -n 1 --pretty=oneline > ~/git-lost-found.txt
logsimple = log --pretty=format:"%h%x09%an%x09%x09%ad%x09%s"
update = !git pull && git submodule update --init --recursive
[color]
ui = true
[core]
autocrlf = input
excludesfile = /Users/dlattanzio/.gitignore_global
fileMode = false
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment