在我的分叉存储库中,我设置了一个remote origin和remote upstream(原始存储库)。
git status 与原产地相比。
我如何比较upstream?
谢谢
在我的分叉存储库中,我设置了一个remote origin和remote upstream(原始存储库)。
git status 与原产地相比。
我如何比较upstream?
谢谢
要让 git status 将当前分支与不同的远程进行比较,您需要为所述分支设置该远程
git config branch.<mybranch>.remote upstream
然后再试git status一次(可能在 a 之后git remote update)。
在“选择远程 Git 状态”中查看更多信息。