重命名存储库名称后更新原点 [英] Update origin after renaming the repository name
本文介绍了重命名存储库名称后更新原点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将项目文件推送到存储库中.但是,当我这样做时,会出现以下屏幕截图所示的错误.
I am trying to push my project files to my repository. But when I do that I get errors as in following screenshot.
我之前在该项目文件中有一个存储库,然后将其删除.现在,我在该项目文件中创建了另一个名称不同的存储库.但是我现在得到这些错误.请告诉我该怎么办.
I had a repository in that project file before and I deleted it. Now I have created another repository with a different name in that project file. But I get these errors now. Please tell me what I should do.
推荐答案
如果按照建议的名称更新了远程仓库,请粘贴以下命令.
Paste the command below if you updated your remote repo as per name suggested.
git remote set-url origin https://github.com/BSThisarasinghe/Sabra-Medical-Center.git
这篇关于重命名存储库名称后更新原点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文