美文网首页
如何修改github仓库代码

如何修改github仓库代码

作者: cc_Jumper | 来源:发表于2018-07-30 20:46 被阅读317次

    如何在终端中使用指令检出项目,修改并提交。

    1. 首先使用git clone url将github上的项目克隆到本地
    2. 增加文件使用 git add file
    3. 查看当前工程状态使用 git status
    4. 增删改后要提交使用 git commit file -m "desc"提交改动
    5. 最后使用 git push 将改动推到github远端地址上

    首次提交需要关联远程仓库:
    // 关联
    git remote add origin https://github.com/buvtopcc/test.git
    // 上传
    git push -u origin master
    之后的修改按照1~5步即可提交。

    相关文章

      网友评论

          本文标题:如何修改github仓库代码

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