Skip to content

Instantly share code, notes, and snippets.

@RoLYroLLs
Last active October 10, 2016 23:15
Show Gist options
  • Save RoLYroLLs/11196389 to your computer and use it in GitHub Desktop.
Save RoLYroLLs/11196389 to your computer and use it in GitHub Desktop.
Small list of personal git config
[user]
name = [name]
email = [email]
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
# windows; if on a windows machine, uncomment line below
#autocrfl = true
# mac; if on a mac, uncomment line below
#autocrfl = input
[push]
default = matching
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
# USING COLORS
# {foreground-color} {background-color} {foreground-attribute}
# COLORS
# normal
# black
# red
# green
# yellow
# blue
# magenta
# cyan
# white
#
# ATTRIBUTES
# bold
# dim
# ul
# blink
# reverse
#
[color "branch"]
current = bold yellow
local = bold green
remote = bold cyan
upstream = bold magenta
plain = bold white
[color "diff"]
#plain = normal
meta = magenta bold
frag = magenta bold
old = red bold
new = blue bold
#commit = normal
#whitespace = normal
[color "decorate"]
branch = bold magenta
remoteBranch = bold red
tag = bold yellow
stash = bold white
head = bold cyan
[color "grep"]
#context = normal
#filename = normal
#function = normal
#linenumber = normal
#match = normal
#selected = normal
#separator = normal
[color "interactive"]
#prompt = normal
#header = normal
#help = normal
#error = normal
[color "status"]
header = cyan
# added or updated
added = bold green
changed = bold yellow
untracked = bold red
branch = bold magenta
nobranch = red
[log]
date = relative
[alias]
oldest-ancestor = !zsh -c 'diff -u <(git rev-list --first-parent \"${1:-master}\") <(git rev-list --first-parent \"${2:-HEAD}\") | sed -ne \"s/^ //p\" | head -1' -
lol = log --graph --decorate --pretty=format:'%C(yellow)%h%C(auto)%d %C(reset)%s %C(cyan)- %an %C(white)- %ar %C(magenta)- %cD%C(reset)' --abbrev-commit
lola = log --graph --decorate --pretty=format:'%C(yellow)%h%C(auto)%d %C(reset)%s %C(cyan)- %an %C(white)- %ar %C(magenta)- %cD%C(reset)' --abbrev-commit --all
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# For Use with Windows GitGUI
[guitool "Pull/No Rebase"]
cmd = git pull
argprompt = yes
[guitool "Pull/With Rebase"]
cmd = git pull --rebase
[guitool "Rebase/Onto..."]
cmd = git rebase $REVISION
revprompt = yes
[guitool "Rebase/Continue"]
cmd = git rebase --continue
[guitool "Rebase/Skip"]
cmd = git rebase --skip
[guitool "Rebase/Abort"]
cmd = git rebase --abort
confirm = yes
[guitool "Stash/Save"]
cmd = git stash
[guitool "Stash/Pop"]
cmd = git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment