Skip to content

Instantly share code, notes, and snippets.

@lukemorton
Last active March 19, 2020 09:51
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 lukemorton/7084d1bffd5967e44d2810200dac0f8c to your computer and use it in GitHub Desktop.
Save lukemorton/7084d1bffd5967e44d2810200dac0f8c to your computer and use it in GitHub Desktop.
Latest git aliases
[alias]
st = status -sb
co = checkout
cp = cherry-pick
ci = commit
br = branch
sub = submodule
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
undo = reset HEAD^
p = !git stash && git pull --recurse-submodules && git stash pop
og = !git stash && git fetch && git rebase origin/master && git stash pop
pp = !git p && git push
lsnc = log --pretty=format:"%h\\ %s\\ [%cn]" --decorate
y = log --author="Luke\\ Morton" --since="1\\ day\\ ago" --all --reverse --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s" --decorate
springcleanremote = remote prune origin
springcleanlocal = !git branch | grep -v ^* | grep -v "master" | xargs git branch -D
springclean = !git springcleanremote && git springcleanlocal
[credential]
helper = osxkeychain
[user]
name = Luke Morton
email = lukemorton.dev@gmail.com
[core]
editor = atom --wait
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment