文档首页> 代码托管 CodeArts Repo> 常见问题> 使用CodeArts Repo时,常见报错解决方法> 执行git push 命令时,报错'origion' does not appear to be a git repository...
更新时间:2024-07-09 GMT+08:00
分享

执行git push 命令时,报错'origion' does not appear to be a git repository...

问题现象

执行如下命令时,出现报错“'origion' does not appear to be a git repository...”

git push --set-upstream origin feature1 

原因分析

原因是远程不存在origion这个仓库名称。

处理方法

查看远程仓库名称及路径的相关信息,删除错误的远程仓库名称,再重新添加新的远程仓库。执行如下命令:

  1. 查看远程仓库的详细信息,可看到代码仓库的名称,关联地址。

    git remote -v

  2. 删除错误的origion仓库。

    git remote remove origion

  3. 重新添加远程代码仓库地址。

    git remote add origion

  4. 重新提交代码文件到远程代码仓库的master主干。

    git push -u origion master

分享:

使用CodeArts Repo时,常见报错解决方法 所有常见问题

more