鍍金池/ 問答/Linux/ git push 失敗,You are not allowed to push

git push 失敗,You are not allowed to push code to this project ?

  1. 我一直在自己的git 分支做開發(fā),最近開發(fā)完成,使用 git push 提交到遠(yuǎn)端,總是push失敗,報(bào)的錯(cuò)誤

就是

remote: You are not allowed to push code to this project.
fatal: unable to access 'http://git.intra.***.git/': The requested URL returned error: 403

之前一直是可以成功 push 到遠(yuǎn)端的,可能某一天我做過什么操作,但沒記得和git 配置有關(guān)的,結(jié)果現(xiàn)在我就無法提交代碼了

請問有人遇到過嗎 ?

回答
編輯回答
女流氓

403 沒有權(quán)限啊

2018年8月14日 00:51
編輯回答
莓森

可能是git憑證出現(xiàn)了錯(cuò)誤,如果是,你可以看看下面步驟:
進(jìn)入“控制面板” => "用戶帳戶" => "管理您的憑證" => "Windows憑據(jù) / 普通憑據(jù)" ,到此發(fā)現(xiàn)在普通憑據(jù)中有多個(gè)git憑證,確認(rèn)后發(fā)現(xiàn)有錯(cuò)誤的憑證,修改后就能順利的push代碼了。參考鏈接: https://gitlab.com/gitlab-com...

2017年11月24日 12:48
編輯回答
背叛者

權(quán)限不足,是不是你刪了什么東西

2018年7月5日 00:17
編輯回答
陌南塵

謝謝樓上的各位!
很神奇,提問之后沒20分鐘就可以push了!
是個(gè)人憑證的問題,我之前可能忙的不小心改動了什么東西
我用的mac,后來google下找到并參考了這個(gè)問題 https://stackoverflow.com/que... 下的第二條 300 多贊的那個(gè)答案,
重新設(shè)置了一下憑證,用的命令是
git remote set-url origin https://yourusername@github.c...
然后就可以push了

2017年6月2日 01:13
編輯回答
空白格

這是沒有權(quán)限。具體原因可能有很多種。

2018年9月1日 12:18