Skip to content

Instantly share code, notes, and snippets.

@mysy00
Last active January 21, 2019 20:01
Show Gist options
  • Save mysy00/d910a8766e5a35b664122b987175bc46 to your computer and use it in GitHub Desktop.
Save mysy00/d910a8766e5a35b664122b987175bc46 to your computer and use it in GitHub Desktop.
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
show-tree = log --oneline --graph --color --all --decorate
rbm = rebase master
rbi = rebase -i
rb = rebase
rbc = rebase --continue
rba = rebase --abort
rbs = rebsae --skip
rs = reset
rs-1 = reset --soft HEAD~1
rss = git reset HEAD^
po = push origin
pom = push origin master
plom = pull origin master
plum = pull upstream master
cob = checkout -b
com = checkout master
cu = "!git branch --merged | grep -v '*' | xargs -n 1 git branch -d"
cia = commit --amend
ciane = commit --amend --no-edit
cim = commit -m
cimorig = commit -c ORIG_HEAD
a = add
aa = add .
ch = cherry-pick
chc = cherry-pick --continue
cha = cherry-pick --abort
fup = fetch upstream
for = fetch origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment