提交代碼遇到not allowed to push code git info detecting host provider for 網址解決辦法


查看git 出錯信息

> git push -u origin android
info: detecting host provider for 'https://AA.com/'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: You are not allowed to push code to this project.
fatal: unable to access 'https://AA.com/AA/AA/AA.git/': The requested URL returned error: 403

解決方案:

首先排查權限問題

找到在git的對應項目,然后找到項目信息,打開項目成員列表,查看對應權限,自己是否擁有推代碼權限

最終解決

經過分析,是因為該項目原本就存在一個git的推送,我要把它挪到一個新倉庫里,同時攜帶原有的提交記錄,所以解決了

git config --global user.name "AAA"
git config --global user.email "AA@AA.com"
git init
git remote add Aing https://AA/AAapp.git
git push Aing master (第一個是倉庫名稱,第二個是分支名稱)

今天就寫到這里啦~

  • 小伙伴們,( ̄ω ̄( ̄ω ̄〃 ( ̄ω ̄〃)ゝ我們明天再見啦~~
  • 大家要天天開心哦

歡迎大家指出文章需要改正之處~
學無止境,合作共贏

在這里插入圖片描述

歡迎路過的小哥哥小姐姐們提出更好的意見哇~~


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2024 CODEPRJ.COM