1. 程式人生 > >在IDEA上 git push 一直報Push rejected: Push master to origin/master was rejected by remote

在IDEA上 git push 一直報Push rejected: Push master to origin/master was rejected by remote

我將別人建立的工程拉下來後進行了修改,然後commit,pull之類的都沒有問題,然後進行push就一直都是如下提示資訊,不知道什麼原因:

11:48    Push rejected: Push master to origin/master was rejected by remote

11:49    Push rejected: Push master to origin/master was rejected by remote

11:51    Push rejected: Push master to origin/master was rejected by remote

11:55    Push rejected: Push master to origin/master was rejected by remote

於是跑到本地git倉庫根目錄下開啟git bash here 執行命令git push 出現下面提示資訊

 由報錯原因知道,說這個分支受保護不允許提交,意思是我的許可權太低,由於這個是master分支,所以dev許可權不允許,找管理員授權吧,或者另外拉dev分支後在去合併到master