Skip to content

Instantly share code, notes, and snippets.

@kflorence
Last active April 26, 2018 20:42
Show Gist options
  • Save kflorence/5422959 to your computer and use it in GitHub Desktop.
Save kflorence/5422959 to your computer and use it in GitHub Desktop.
Useful config settings
[alias]
br = branch
ci = commit
cl = clone
co = checkout
cp = cherry-pick
df = diff
lg = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
mg = merge --no-ff
pl = pull --rebase
tidy = !git branch --merged | grep -v '\\*' | xargs git branch -d && git remote | xargs -n 1 git remote prune
st = status -s
who = shortlog -s --
[color]
ui = true
[color "status"]
added = yellow bold
untracked = green bold
changed = red bold
[core]
editor = vim
ignorecase = false
[user]
name = <your name>
email = <your email>
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment