文档首页>
代码托管 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这个仓库名称。
处理方法
查看远程仓库名称及路径的相关信息,删除错误的远程仓库名称,再重新添加新的远程仓库。执行如下命令:
- 查看远程仓库的详细信息,可看到代码仓库的名称,关联地址。
git remote -v
- 删除错误的origion仓库。
git remote remove origion
- 重新添加远程代码仓库地址。
git remote add origion
- 重新提交代码文件到远程代码仓库的master主干。
git push -u origion master
使用CodeArts Repo时,常见报错解决方法 所有常见问题
more