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.
从nodegit获取提交后origin/master,有什么方法可以检测到本地存储库是否与原点不同?
origin/master
基本上我正在寻找一种相当于命令行的方法......
$ git status On branch master Your branch and 'origin/master' have diverged
我尝试过使用repo.getStatus().then(...),但它解析为一个空列表。
repo.getStatus().then(...)