Skip to content

Instantly share code, notes, and snippets.

@icahoon
Last active April 1, 2018 03:56
Show Gist options
  • Save icahoon/f77ab6a236586fb57b51dc11b297d051 to your computer and use it in GitHub Desktop.
Save icahoon/f77ab6a236586fb57b51dc11b297d051 to your computer and use it in GitHub Desktop.
[user]
name = Ian Cahoon
email = [email protected]
[push]
default = tracking
[color]
ui = auto
[core]
editor = vim
autocrlf = false
filemode = false
[merge]
tool = vimdiff
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
addupstream = remote add upstream
origin = config --get remote.origin.url
upstream = config --get remote.upstream.url
info = !echo "origin: $(git origin)" && echo "upstream: $(git upstream)"
br = !git branch -v && git branch -vr
f = fetch --all --prune
m = merge --ff-only
del = branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment