我尝试获取所有修改文件的列表,如下所示:
repo_path = '.'
repo_url = 'git@github.com:username/myfolder.git'
repo = Gittle(repo_path, origin_uri = repo_url)
repo.modified_files
但我得到的文件列表相当庞大,而且包含垃圾。事实上,这与我在控制台中运行时得到的列表无关:
$ git status
所以,我的问题是如何使用Gittle
库获得修改文件的真实列表。我需要这个列表以便执行添加和提交。你知道吗
听起来你执行的路径不对。你知道吗
相关问题 更多 >
编程相关推荐