查看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 "[email protected]"
git init
git remote add Aing https://AA/AAapp.git
git push Aing master (第一个是仓库名称,第二个是分支名称)
今天就写到这里啦~
- 小伙伴们,( ̄ω ̄( ̄ω ̄〃 ( ̄ω ̄〃)ゝ我们明天再见啦~~
- 大家要天天开心哦
欢迎大家指出文章需要改正之处~
学无止境,合作共赢