Last active
January 3, 2026 14:53
-
-
Save mike-ward/e55e81084471e0214b33 to your computer and use it in GitHub Desktop.
My .gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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