$ cd test
$ mkdir repo && cd repo && touch a b c && git init && git add . && git commit -m "init"
$ echo "a" > a && echo "b" > b && echo "c" > c && git add a b
$ git status
On branch master
Changes to be committed:
modified: a
modified: b
Changes not staged for commit:
modified: c
您已接近,请使用
repo.index.diff("HEAD")
在临时区域中获取文件。在完整演示:
首先创建测试回购:
现在请登录ipython:
^{pr2}$相关问题 更多 >
编程相关推荐