当使用git出现错误 upstream git repository时怎么办?

  1. 执行如下命令添加 openGauss 社区 blog 仓为 upstream。

    git remote add upstream https://gitee.com/opengauss/blog.git

  2. 执行如下命令查看是否 origin 和远程 upstream 都已添加。

    $ git remote -v
    origin https://gitee.com/zcp100_zcp100/blog.git (fetch)
    origin https://gitee.com/zcp100_zcp100/blog.git (push)
    upstream https://gitee.com/opengauss/blog.git (fetch)
    upstream https://gitee.com/opengauss/blog.git (push)

    如果显示以上结果 ,表明都已添加。可执行 commit 提交文档。