标签: php git
现在我只有一个不好的主意:使用git status,然后用正则表达式diverged进行解析。
git status
diverged
注意:如果我尝试结帐,似乎无法正常工作,例如,从主分支到分支分支bc git status表示对主人来说一切正常。
答案 0 :(得分:0)
使用php git库?
喜欢Git.php https://github.com/kbjr/Git.php