接上次的gitee首次提交,再次提交
1git status
2git add .
3git commit -m “add_second”
4git push
中途遇见一次错误
failed to push some refs to git
原因是readme文件不在本地
运行git pull --rebase origin master
再次git push解决
记录一下
若错误为
fatal: The current branch login has no upstream branch.
To push the current branch and set the remote as upstream
则是文件名与仓库名不一致造成
输入git push --set-upstream origin login解决