Skip to content

Instantly share code, notes, and snippets.

@p5k6
Created January 7, 2016 22:51
Show Gist options
  • Save p5k6/ff95376bc33d2a1df375 to your computer and use it in GitHub Desktop.
Save p5k6/ff95376bc33d2a1df375 to your computer and use it in GitHub Desktop.
gitconfig for CLI
[user]
name = Josh Stanfield
email = p5k6@yahoo.com
[core]
editor = vim
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
l10 = log --pretty=oneline --abbrev-commit --all --decorate --graph --max-count=10
add-modified = status | grep 'modified' | ruby -e "puts STDIN.read.gsub(/.*:/,'').gsub(/\n/,'')" | xargs git add
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[branch]
autosetuprebase = always
[pager]
status = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment