Skip to content

Instantly share code, notes, and snippets.

@sigilioso
Last active February 7, 2019 09:35
Show Gist options
  • Save sigilioso/9972253 to your computer and use it in GitHub Desktop.
Save sigilioso/9972253 to your computer and use it in GitHub Desktop.
gitconfig
[user]
name = Your Name
email = [email protected]
[color]
ui = true
[pull]
default = current
[push]
default = current
[alias]
co = checkout
br = branch
ci = commit
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
undo-commit = reset --soft HEAD^
clean-br = "!f(){ git branch --merged |egrep -v '(develop|master)'|xargs git branch -d;};f"
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[core]
excludesfile = ${HOME}/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment