error: src refspec master does not match any error: failed to push some refs to 'github.com:2100301325/twohands.git'
时间: 2023-08-27 15:14:22 浏览: 208
Github—failed to push some refs to ‘https://github.com/***/git_project.git’解决办法
5星 · 资源好评率100%
引用对于发生了error: src refspec master does not match any error: failed to push some refs to 'github.com:2100301325/twohands.git'错误的情况,可能是因为没有将本地的分支与远程仓库的分支进行关联导致的。可以尝试使用git branch --set-upstream-to=origin/master master命令来建立本地分支与远程分支的关联关系,然后再进行推送。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [关于error: src refspec master does not match any error: failed to push some refs to ‘github....](https://blog.csdn.net/sfgsdfg2516/article/details/120579313)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [git push 大坑,错误error: src refspec master does not match any. error: failed to push some refs to](https://blog.csdn.net/qq_43142509/article/details/124182138)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文