Skip to content

Instantly share code, notes, and snippets.

@ahomu
Created February 2, 2012 11:17
Show Gist options
  • Save ahomu/1722961 to your computer and use it in GitHub Desktop.
Save ahomu/1722961 to your computer and use it in GitHub Desktop.
[alias]
# pretty graph -> http://d.hatena.ne.jp/sugyan/20111103/1320247493
tr = log --graph --pretty='format:%C(yellow)%h%Creset %s %Cgreen(%an)%Creset %Cred%d%Creset'
# back correct
bc = commit --amend -m
# untracked files
ut = git ls-files -o --exclude-from=.gitignore
# stash
s = stash
sa = stash apply
# branch
br = branch
# copy branch and checkout
cp = checkout -b
cd = checkout
# merge not fast-foward
comb = merge --no-ff
# merge squash
sq = merge --squash
# soft reset
back = reset --soft HEAD^
@ahomu
Copy link
Author

ahomu commented Feb 2, 2012

薄いよ( ╹◡╹)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment