git上传提交遇到问题
The local repository is out of date.Make sure all changes have been pulled from the remote repository and try again.
字面意思很好理解, "确保所有东西都从远程拉下来" .
是因为你再github新建的项目中有文件在本地没有造成的,需要将它pull到终端,先cd到你项目目录
git pull命令的作用是,取回远程主机某个分支的更新,再与本地的指定分支合并
现在已经在项目当前目录了 。
git pull --rebase xxx master
xxx 是Add Remote的Name 默认为origin
master 是你的分支名称 默认是master