2
随着git status
我可以得到有关未公开提交的计数信息:如何使用GitPython获取未发布的提交数?
» git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
我想获得未公布的提交(或计数)与GitPython。我发现我发现repo.git.status()
,但这不是我想要的。