Last active
March 19, 2020 09:51
-
-
Save lukemorton/7084d1bffd5967e44d2810200dac0f8c to your computer and use it in GitHub Desktop.
Latest git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 = [email protected] | |
[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