QUcyp 2022-04-27 15:05 采纳率: 66.7%
浏览 83
已结题

git remote remove origin后在使用git remote add origin命令添加后提交代码报错

git remote remove origin后在使用git remote add origin命令添加后提交代码报错:fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin master,

git branch -a查看分支:只有master分支,

使用 git push -u origin master命令 报:fatal: unable to access 'http://x@x/r/CDM/HeartLove.git/': Failed to connect to 127.0.0.1 port 10080: Connection refused

  • 写回答

1条回答 默认 最新

  • 众生皆苦唯有我甜 2022-04-27 15:15
    关注

    建议删除.git文件重新操作

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 10月1日
  • 已采纳回答 9月23日
  • 创建了问题 4月27日