Git--将已有的项目添加到github

作者: 古朋 | 来源:发表于2018-05-16 12:02 被阅读2次

    在本地仓库陆续执行以下命令:

    1. git init
    2. git commit -m ‘提交说明’
    3. git remote add origin 远程仓库地址
    4. git branch --set-upstream-to=origin/master master
    5. git pull origin master ----allow-unrelated-histories

    顺序执行完即可正常操作

    相关文章

      网友评论

        本文标题:Git--将已有的项目添加到github

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