Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GitPython教程提到属性 untracked_files 作为获取特定 git 存储库的未跟踪文件数组的方法。
但是,引用此属性会导致以下错误。
AttributeError: 'Repo' object has no attribute 'untracked_files'
GitPython中获取未跟踪文件列表的方法是什么?
该untracked_files属性是在 GitPython v0.2 中添加的(请参阅更改日志)。
untracked_files
您应该检查您安装的版本并在必要时进行升级。