今天使用在自己笔记本本地磁盘上使用Git命令行执行"git push"然后输入github的用户名和密码之后,报如下错误:
![rejected] master->master(fetch first)
error:failed to push some refs to ‘https://github.com/xxx/xxx.git’
只需要在下面输入
git pull 回车
在命令行输入
wq 保存退出
再次输入
git push origin master
就可以了
今天使用在自己笔记本本地磁盘上使用Git命令行执行"git push"然后输入github的用户名和密码之后,报如下错误:
![rejected] master->master(fetch first)
error:failed to push some refs to ‘https://github.com/xxx/xxx.git’
只需要在下面输入
git pull 回车
在命令行输入
wq 保存退出
再次输入
git push origin master
就可以了