Skip to content

Instantly share code, notes, and snippets.

@bomatson
Created December 20, 2016 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bomatson/4ef493dbd2bb9b592b24c2b7aec01c7e to your computer and use it in GitHub Desktop.
Save bomatson/4ef493dbd2bb9b592b24c2b7aec01c7e to your computer and use it in GitHub Desktop.
[alias]
# Show verbose output about tags, branches or remotes
tags = tag -l
br = branch -a
paths = remote -v
# Pretty log output
lol = log --graph
c = commit -m
a = add .
st = status --short --branch
s = status
co = checkout
b = branch
df = diff
l = log --graph --decorate --abbrev-commit
wip = !git add . && git commit -m "wip"
purge = clean -xdf
squash = merge --squash
rollback = reset HEAD^
upstream = branch --set-upstream
chore = "!sh -c 'git checkout -b chore/$1' -"
bug = "!sh -c 'git checkout -b bug/$1' -"
feature = "!sh -c 'git checkout -b feature/$1' -"
[format]
pretty = format:%C(yellow)%h%Creset | %C(cyan)%ar%Creset | %s %C(yellow)%d %Cred[%an]
[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 bold
frag = magenta bold
old = red bold
new = green bold
[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
[user]
name = "Bobby Matson"
email = bobby@carbonfive.com
[credential]
helper = osxkeychain
[core]
quotepath = false
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment