Push master to origin/master was rejected by remote怎么解决
时间: 2023-11-25 11:50:07 浏览: 156
引用\[1\]和\[2\]提到了一种解决方法,你可以查看本地的git日志来找到问题的原因。在Idea的左下角的git按钮中可以找到日志,根据日志中的提示来解决问题。常见的错误可能是权限不够。引用\[3\]提到了如果报没有权限的错误,可以在命令前加上sudo命令来解决。另外,冲突也可能导致Push被拒绝。你可以使用git命令来解决冲突。总之,你可以通过查看本地git日志、检查权限和解决冲突来解决Push master to origin/master was rejected by remote的问题。
#### 引用[.reference_title]
- *1* [Push rejected: Push master to origin/master was rejected by remote](https://blog.csdn.net/qq_38242046/article/details/125960061)[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]
- *2* *3* [Push master to origin/master was rejected by remote](https://blog.csdn.net/Aaron_ch/article/details/123549447)[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 ]
阅读全文