Push master to origin/master was rejected by the remote
时间: 2023-11-25 11:50:14 浏览: 140
回答: 当出现"Push master to origin/master was rejected by the remote"的错误时,可能有几个原因导致。首先,权限不够可能是一个常见的问题。你可以尝试使用sudo命令来提升权限,例如在命令前加上sudo。\[3\]另外,冲突也可能导致推送被拒绝。你可以查看git的运行日志,通过Idea的左下角的git按钮来查看日志,根据日志中的提示来解决问题。\[2\]如果以上方法都不起作用,你可以尝试改变分支或者检查远程仓库的权限设置。\[1\]
#### 引用[.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 ]
阅读全文