Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitPython-获取未跟踪的文件_Python_Git_Gitpython - Fatal编程技术网

GitPython-获取未跟踪的文件

GitPython-获取未跟踪的文件,python,git,gitpython,Python,Git,Gitpython,GitPython提到untracked_files属性是获取特定git存储库的未跟踪文件数组的方法 但是,引用此属性会导致以下错误 AttributeError: 'Repo' object has no attribute 'untracked_files' GitPython中获取未跟踪文件列表的方法是什么 gitpythonv0.2中添加了untracked_files属性(请参阅) 您应该检查已安装的版本,必要时进行升级。您使用的是什么版本的GitPython?untracked_f

GitPython提到untracked_files属性是获取特定git存储库的未跟踪文件数组的方法

但是,引用此属性会导致以下错误

AttributeError: 'Repo' object has no attribute 'untracked_files'

GitPython中获取未跟踪文件列表的方法是什么

gitpythonv0.2中添加了
untracked_files
属性(请参阅)


您应该检查已安装的版本,必要时进行升级。

您使用的是什么版本的GitPython?
untracked_files
属性是在0.2中添加的(请参阅)。@isedev:I有0.1.7。拆除并安装0.3.1-beta2。谢谢你能不能加上这个评论作为回答,这样我就可以接受了?