美文网首页
Git 上传提交问题 The local repository

Git 上传提交问题 The local repository

作者: 深蓝_S | 来源:发表于2016-04-22 11:23 被阅读2614次

    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

    相关文章

      网友评论

          本文标题:Git 上传提交问题 The local repository

          本文链接:https://www.haomeiwen.com/subject/rmcxrttx.html