小编ben*_*enj的帖子

GitPython 列出特定文件的所有提交

我正在编写一个 Python 脚本,我需要知道特定文件的所有提交。在我的代码中,我使用GitPython来执行其他任务,但对于这个问题我找不到任何东西。

在命令行中我使用:

git log --pretty='%H' file-path
Run Code Online (Sandbox Code Playgroud)

python git gitpython

2
推荐指数
1
解决办法
7440
查看次数

标签 统计

git ×1

gitpython ×1

python ×1