Skip to content

Instantly share code, notes, and snippets.

@kalenjordan
Last active Mar 30, 2021
Embed
What would you like to do?
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
l = log --graph --decorate --pretty=oneline --abbrev-commit
ll = log --pretty=format:'%h : %s' --graph --decorate
la = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
re = rebase
com = checkout master
rem = rebase master
now = diff HEAD
stache = stash
ss = stash
ship = "!f() { set -e; branch=$(git symbolic-ref HEAD); ship=\"master\"; if [ \"$1\" = \"--to\" ]; then ship=\"$2\"; fi; git checkout \"$ship\"; git pull; git checkout \"$branch\"; git rebase \"$ship\"; }; f"
[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
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
editor = nano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment