返回顶部

Git 推送项目报错

#git push -u origin --all
remote:
remote: ========================================================================
remote:
remote: This deploy key does not have write access to this project.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 

 故障原因

无法建立连接,上传推送文件

解决方法

添加用户SSH KEY

 

 再次推送成功

 

 检查仓库文件

 

 

执行命令

具体的流程:

将准备的文件提交到git的暂存区,再提交到工作区,最后推送到仓库

git config --global user.name "Administrator"
git config --global user.email "1655841639@qq.com"
git clone git@10.0.0.107:root/tomcat.git
cd tomcat/
touch README.md
echo '<li> <a href="http://www.centos.org/">Home</a> </li>' > a.txt
echo '<html><body>You are being <a href="http://127.0.0.1/users/sign_in">' >b.txt
git add .
git commit -m "666"
git push -u origin --all

 

posted @ 2021-11-05 18:59  九尾cat  阅读(780)  评论(0编辑  收藏  举报