git remote add origin https://github.com/atguigu2018ybuq/huashan.git error: remote origin already exists.
时间: 2023-08-25 08:03:53 浏览: 193
git2.40.0最新安装包32/64安装包 windows
回答: 当你执行git remote add origin命令时,出现了error: remote origin already exists的错误提示。这是因为你已经添加了一个名为origin的远程仓库。如果你想更改远程仓库的URL,可以使用git remote set-url origin命令。例如,你可以使用以下命令将远程仓库origin的URL更改为https://github.com/atguigu2018ybuq/huashan.git:
git remote set-url origin https://github.com/atguigu2018ybuq/huashan.git
这样就可以更改远程仓库的URL了。\[3\]
#### 引用[.reference_title]
- *1* *2* *3* [git@github.com: Permission denied (publickey).](https://blog.csdn.net/helloasimo/article/details/123778112)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文