gpt4 book ai didi

git - 我如何在上游执行 git status ?

转载 作者:行者123 更新时间:2023-12-03 19:06:09 25 4
gpt4 key购买 nike

在我的 fork 存储库中,我设置了一个 remote originremote upstream (原始 repo )。git status与原产地相比。
我与 upstream 相比如何?
谢谢

最佳答案

对于 git status 将当前分支与不同的远程进行比较,您需要为所述分支设置该远程

git config branch.<mybranch>.remote upstream
那就试试 git status再次(可能是 after a git remote update )。
在“ Select remote on Git status”处查看更多信息。

关于git - 我如何在上游执行 git status ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63606152/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com