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