Skip to content

Instantly share code, notes, and snippets.

@mike-ward
Last active January 3, 2026 14:53
Show Gist options
  • Select an option

  • Save mike-ward/e55e81084471e0214b33 to your computer and use it in GitHub Desktop.

Select an option

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 = \"micro\"
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)\"
[push]
default = simple
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment