【问题标题】:How to update the repository of the current project on github?如何更新github上当前项目的仓库?
【发布时间】:2019-05-06 12:12:13
【问题描述】:

我已经使用 intellij IDE 将我的项目上传到了 github,但是当我添加新代码时,我需要知道如何在 github 上更新上传的存储库?

【问题讨论】:

    标签: java git github intellij-idea


    【解决方案1】:

    “添加新代码”到您的 Git 存储库(首先是您的本地存储库)是通过“提交”来完成的。详细信息:https://git-scm.com/docs/git-commit

    然后,在一次或多次提交之后,如果您想将更改上传到远程存储库(GitHub 上的存储库),则必须“推送”您的更改:https://git-scm.com/docs/git-push

    有关使用 Git 的详细信息和示例(因为这远远超出了问答网站线程),请查看我的 Git beginner's guide

    【讨论】:

      【解决方案2】:

      这个问题看起来不是 IntelliJ 特有的。

      要更新 GitHub 上的代码,您需要将更改提交到本地 git 存储库并将更改推送到 GitHub。见https://help.github.com/en/articles/pushing-to-a-remote

      查看文档以了解在 IntelliJ 中提交和推送的具体方式。 https://www.jetbrains.com/help/idea/commit-and-push-changes.html

      【讨论】:

        猜你喜欢
        • 2018-05-06
        • 1970-01-01
        • 1970-01-01
        • 2012-12-15
        • 2022-11-25
        • 2011-10-19
        • 1970-01-01
        • 2014-03-24
        • 2022-06-24
        相关资源
        最近更新 更多