Skip to content

Instantly share code, notes, and snippets.

@tommyp
Created May 4, 2015 16:44
Show Gist options
  • Select an option

  • Save tommyp/e5f2d789171412fd6a48 to your computer and use it in GitHub Desktop.

Select an option

Save tommyp/e5f2d789171412fd6a48 to your computer and use it in GitHub Desktop.
[core]
quotepath = false
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = /Users/Tommy/.gitignore
[color]
ui = true
[color "branch"]
current = yellow black
local = yellow
remote = magenta
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red reverse
new = green reverse
whitespace = white reverse
[color "status"]
added = yellow
changed = green
untracked = cyan reverse
branch = magenta
[alias]
pints = push
amend = commit --amend -C HEAD
c = commit
cm = commit -m
co = checkout
d = diff --no-prefix
dc = diff --no-prefix --cached
f = fetch --prune
ff = merge --ff-only
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >> .gitignore
l = log --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
lg = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s'
ll = log --stat --abbrev-commit
rc = rebase --continue
rd = push origin --delete
s = status --short --branch
track = !git branch --set-upstream-to=origin/$(git rev-parse --abbrev-ref HEAD)
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment