使用別名時是否有顯示完整命令的選項?執行Git別名時顯示完整命令?
例子:
$ git ci -m "initial commit"
Full command: git commit -m "initial commit"
...
$ git lg
Full command: git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
...
別名是很方便,但我喜歡學習/提醒究竟做我的別名(我大部分的別名都是從網上抄)
我不確定它是否可以使用git別名(即那些在git config中定義的) – CharlesB
它會。那是我測試它的地方。 – seumasmac
我的意思是如果git日誌別名git log --oneline **在git config **,它會工作嗎? – CharlesB