Skip to content

Instantly share code, notes, and snippets.

@mike-ward
Last active February 18, 2021 16:27
Show Gist options
  • Save mike-ward/e55e81084471e0214b33 to your computer and use it in GitHub Desktop.
Save mike-ward/e55e81084471e0214b33 to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
name = mike-ward
email = [email protected]
[core]
autocrlf = true
editor = \"C:\\Program Files\\Notepad2\\Notepad2.exe\"
excludesfile = C:\\Users\\Mike\\Documents\\gitignore_global.txt
[alias]
st=status
co = checkout
ec = config --global -e
up = !git pull
cob = checkout -b
cm = !git add -A && git commit -m
save = !git add -A && git commit -m 'SAVEPOINT'
wip = !git add -u && git commit -m "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
plog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)\"
[color "status"]
changed = cyan normal bold
untracked = cyan normal bold
[color "diff"]
old = cyan normal bold
[color "branch"]
remote = cyan normal bold
[credential]
[push]
default = simple
[merge]
tool = kdiff3
[diff]
guitool = kdiff3
[credential]
helper = manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment