查看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 (第一個是倉庫名稱,第二個是分支名稱)
今天就寫到這里啦~
- 小伙伴們,( ̄ω ̄( ̄ω ̄〃 ( ̄ω ̄〃)ゝ我們明天再見啦~~
- 大家要天天開心哦
歡迎大家指出文章需要改正之處~
學無止境,合作共贏