Skip to content

Instantly share code, notes, and snippets.

@kalenjordan
Last active March 30, 2021 19:55
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 kalenjordan/7186920f28d3c3696dd2aa2265c2460e to your computer and use it in GitHub Desktop.
Save kalenjordan/7186920f28d3c3696dd2aa2265c2460e to your computer and use it in GitHub Desktop.
[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