Last active
March 10, 2025 06:21
-
-
Save doggy8088/e3947b79ad5970169f85d10b5fbe6641 to your computer and use it in GitHub Desktop.
常用的 Git Alias 定義
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 | |
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