Created
January 9, 2017 21:36
-
-
Save nandilugio/a9a0759f40a7fe97de35ed99fc8e97ec to your computer and use it in GitHub Desktop.
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] | |
a = add --all | |
b = branch | |
bm = branch -m | |
bt = branch --track | |
c = commit | |
ca = !git add --all . && git commit -a | |
cam = commit -am | |
cm = commit -m | |
co = checkout | |
cob = checkout -b | |
cp = cherry-pick | |
d = diff | |
ds = diff --staged | |
f = fetch | |
ff = flow feature | |
ffco = flow feature checkout | |
fff = flow feature finish | |
ffp = flow feature publish | |
ffs = flow feature start | |
fh = flow hotfix | |
fhf = flow hotfix finish | |
fhs = flow hotfix start | |
l = log --pretty=format:'%C(yellow)%h%Cred%d %Creset%s%Cblue %Cgreen(%cr) %Cblue[%cn]%Creset' --decorate | |
l1 = log -1 --pretty=%B | |
ll = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset%Cred%d%Creset %s %Cgreen(%cr) %Cblue[%an]%Creset' -- | |
mum = merge upstream/master | |
pl = pull --rebase | |
ps = push | |
r = rebase | |
ra = rebase --abort | |
rc = !git add --all . && git rebase --continue | |
ri = rebase -i | |
riod = rebase -i origin/develop | |
rod = !git fetch && git rebase origin/develop | |
rs = reset | |
rsh = reset HEAD | |
rsh1 = reset HEAD^ | |
rsh2 = reset HEAD^^ | |
s = status | |
sl = diff-tree --name-status -r HEAD | |
st = stash | |
sta = !git add --all . && git stash | |
std = stash drop | |
stl = stash list | |
stp = stash pop | |
sts = stash save | |
stu = stash save --keep-index | |
wip = !git add --all . && git commit -m \"wip [ci skip]\" | |
dewip = ![ \"$(git log -1 --pretty=%B)\" = \"wip [ci skip]\" ] && git reset HEAD^ && git add --all . | |
remove-merged-branches = !git branch --merged | grep -v \"\\*\" | grep -v master | grep -v develop | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CURRENT VERSION: https://github.com/nandilugio/shell-config/blob/master/gitconfig