Skip to content

Instantly share code, notes, and snippets.

@jnf
Last active December 12, 2015 03:48
Show Gist options
  • Save jnf/4709690 to your computer and use it in GitHub Desktop.
Save jnf/4709690 to your computer and use it in GitHub Desktop.
My Favorite .gitconfig settings/aliases/whatevs
[alias]
pretty = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --stat --abbrev-commit
d = diff --color-words
s = status
[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
#Highlight whitespace in diffs
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
@isaacsanders
Copy link

Try

[push]
  default = simple

this allows you to do git push and have it push to origin master.

@jnf
Copy link
Author

jnf commented Mar 5, 2013

Nice! Thanks, Issac.

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