git remote add origin
时间: 2023-10-28 22:58:05 浏览: 105
在使用Git时,使用"git remote add origin"命令可以将本地仓库与远程仓库进行关联。例如,如果你在本地的learngit仓库下运行命令"$ git remote add origin https://github.com/wu347771769/learngit.git",就会将本地仓库learngit与远程仓库https://github.com/wu347771769/learngit.git进行关联。同样的,如果你在本地的studygit仓库下运行命令"$ git remote add origin https://github.com/wangmingshun/studygit.git",就会将本地仓库studygit与远程仓库https://github.com/wangmingshun/studygit.git进行关联。如果在执行"git remote rm origin"命令时报错,提示"error: Could not remove config section 'remote.origin'",那么可能需要修改gitconfig文件的内容来解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [远程仓库$ git remote add origin https://github.com/wu347771769/learngit.git](https://blog.csdn.net/wu347771769/article/details/88999943)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [GIT 远程仓库:添加远程库、从远程库克隆](https://blog.csdn.net/weixin_30398227/article/details/97311687)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [git remote add origin错误](https://blog.csdn.net/weixin_34014555/article/details/93799189)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文
相关推荐


















