git push -u origin master报错
时间: 2024-04-28 20:24:31 浏览: 126
当你执行`git push -u origin master`命令时报错`fatal: ‘origin’ does not appear to be a git repository`,这可能是由于以下几个原因导致的:
1. 你还没有将本地仓库与远程仓库关联起来。确保你已经正确地添加了远程仓库。可以使用`git remote add origin <远程仓库地址>`命令将本地仓库与远程仓库关联起来。请确认你已经运行了该命令并且没有出现错误信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [git push origin master报错的解决方法 & 常见git命令(待更新)](https://blog.csdn.net/qq_33934427/article/details/109004052)[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: 100%"]
[ .reference_list ]
阅读全文