使用别名时是否有显示完整命令的选项?执行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