Skip to content

Instantly share code, notes, and snippets.

@jelder
Created April 6, 2017 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelder/ce4344696139c36786ea08e860b1cf6f to your computer and use it in GitHub Desktop.
Save jelder/ce4344696139c36786ea08e860b1cf6f to your computer and use it in GitHub Desktop.
Jacob Elder's .gitconfig
[user]
name = Jacob Elder
email = jacob@blissfully.com
[status]
submodulesummary = false
# https://gist.github.com/jelder/ce4344696139c36786ea08e860b1cf6f
[alias]
out = "log @{u}.."
fetchall = !git pull && git submodule update --init --remote --recursive && git submodule foreach -q --recursive 'echo Updating $name && git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master) && git -C $toplevel/$name pull && echo ---'
branchall = "submodule foreach git rev-parse --abbrev-ref HEAD"
branchprune = "! git fetch --prune origin && dead=$(git branch --merged | grep -v master) && git branch -D ${dead}"
# https://github.com/zorgiepoo/Komet
[core]
editor = /Applications/Komet.app/Contents/MacOS/Komet
# https://blog.scottnonnenberg.com/better-git-configuration/
[alias]
undo = reset --soft HEAD^
stash-all = stash save --include-untracked
[push]
default = simple
[merge]
ff = only
conflictstyle = diff3
[status]
showUntrackedFiles = all
# https://news.ycombinator.com/item?id=14045787
[stash]
showPatch = true
[rebase]
autostash = true
[log]
decorate = full
[alias]
original = !git show $(cat .git/rebase-apply/original-commit)
[color "status"]
added = green
changed = yellow bold
untracked = red bold
@jelder
Copy link
Author

jelder commented Apr 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment