Skip to content

Instantly share code, notes, and snippets.

@nlitwin
Last active January 15, 2017 05:39
Show Gist options
  • Save nlitwin/40860e325926a2125bc49af1b34efabf to your computer and use it in GitHub Desktop.
Save nlitwin/40860e325926a2125bc49af1b34efabf to your computer and use it in GitHub Desktop.
[alias]
# Show verbose output about tags, branches or remotes
tags = tag -l
brs = branch -a
br = branch
remotes = remote -v
# Pretty log output
hist = log --graph --pretty=format:'%Cred%h%Creset %s%C(yellow)%d%Creset %Cgreen(%cr)%Creset [%an]' --abbrev-commit --date=relative
st = status
ci = commit
co = checkout
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red bold
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
# Use `origin` as the default remote on the `master` branch in all cases
[branch "master"]
remote = origin
merge = refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment