调试git
使用 shell 命令和引用使用别名可能很困难。
我怎样才能看到什么git
正在为给定的别名执行?
In your .gitconfig
,添加以下内容:
debug = !GIT_TRACE=1 git
然后你就可以运行git debug <aliasname>
, 例如:
$ git debug s
17:34:48.611406 git.c:563 trace: exec: 'git-s'
17:34:48.611696 run-command.c:336 trace: run_command: 'git-s'
17:34:48.613262 git.c:286 trace: alias expansion: s => 'status' '--short'
17:34:48.613338 git.c:563 trace: exec: 'git-status' '--short'
17:34:48.613350 run-command.c:336 trace: run_command: 'git-status' '--short'
17:34:48.615319 git.c:350 trace: built-in: git 'status' '--short'
M app/models/user.rb
M test/integration/users_edit_test.rb
?? html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)