Skip to content

Instantly share code, notes, and snippets.

@doggy8088
Last active September 1, 2017 17:44
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 doggy8088/e3947b79ad5970169f85d10b5fbe6641 to your computer and use it in GitHub Desktop.
Save doggy8088/e3947b79ad5970169f85d10b5fbe6641 to your computer and use it in GitHub Desktop.
常用的 Git Alias 定義
[alias]
st = status
sts = status -s
co = checkout
ci = commit
br = branch -a
re = remote
di = diff
dump = cat-file -p
type = cat-file -t
size = cat-file -s
lo = log --oneline
ll = log --pretty=format:'%h %ad | %s%d [%Cgreen%an%Creset]' --graph --date=short
lg = log --graph --pretty=format:'%Cred%h%Creset %ad |%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset [%Cgreen%an%Creset]' --abbrev-commit --date=short
sn = show --name-only
ud = !git checkout master && git pull && git checkout develop && git pull
tlog = !start 'C:\\PROGRA~1\\TortoiseGit\\bin\\TortoiseGitProc.exe' /command:log /path:.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment