今天使用在自己笔记本本地磁盘上使用Git命令行执行"git push"然后输入github的用户名和密码之后,报如下错误:
![rejected] master->master(fetch first)
error:failed to push some refs to ‘/xxx/xxx.git’
只需要在下面输入
git pull 回车
在命令行输入
wq 保存退出
再次输入
git push origin master
就可以了
时间:2021-03-11 23:46:21
今天使用在自己笔记本本地磁盘上使用Git命令行执行"git push"然后输入github的用户名和密码之后,报如下错误:
![rejected] master->master(fetch first)
error:failed to push some refs to ‘/xxx/xxx.git’
只需要在下面输入
git pull 回车
在命令行输入
wq 保存退出
再次输入
git push origin master
就可以了
Git 未能顺利结束 (退出码 128)解决办法(使用git向github上提交项目)
2022-05-04
git提交 [rejected] fetch first 解决办法
2020-08-19