error: failed to push some refs to 'github.com:shmildsj/wwt_first.git'
时间: 2023-10-12 12:07:02 浏览: 49
你遇到的问题是在使用git push命令将本地库推送到github远程库时出现了错误,提示为"error: failed to push some refs to 'github.com:shmildsj/wwt_first.git'"。这个错误通常是因为仓库中的代码与本地代码不一致导致的。
解决这个问题的方法是先将仓库里的代码pull下来,使用命令"git pull https://github.com/---------------------------.git master"。然后执行命令"git add . && git commit -m " ---" && git push https://github.com/---------------------------.git master",将本地代码重新推送到远程库。
如果你按照上述方法操作成功,你会看到成功的结果。这样就解决了推送失败的问题。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* *2* [master->master报错解决办法](https://blog.csdn.net/dream__w/article/details/99455355)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)