我认为git bisect
需要太多打字。
要检查我最近执行的N次提交:
user@host> git bisect start HEAD HEAD~10
user@host> git bisect run py.test -k test_something
...
c8bed9b56861ea626833637e11a216555d7e7414 is the first bad commit
commit c8bed9b56861ea626833637e11a216555d7e7414
Author: ...
Date: Thu Apr 16 16:52:41 2015 +0200
- Commitmessage: ....
user@host> git bisect reset
只需一个命令就可以了
例子:
git bisect --start HEAD~10 run py.test -k test_something
使用一个命令,我的意思不是用分号分隔外壳线:-)
查看文档不是可能的,但是如果您要运行测试,也许您可以发现这个项目Grosser / git-autobisect很有用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句