【问题标题】:committing on github在 github 上提交
【发布时间】:2011-12-10 12:34:39
【问题描述】:

我将一个存储库克隆到我的机器中。换了一个文件。然后提交。

BackchannelApplication-1 git:(master) ✗ git commit
[master c5c7f47] Updating integration test
 1 files changed, 13 insertions(+), 10 deletions(-)
➜  BackchannelApplication-1 git:(master) git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

git log
commit c5c7f47b6f96042beef3cddc051f5a38923d279a
Author: Name <emailid>
Date:   Tue Oct 18 18:58:51 2011 -0400

    Updating integration test

在我的机器上,我可以看到文件已更改,但在 github 上看不到。为什么会这样?

谢谢!

【问题讨论】:

    标签: github repository commit


    【解决方案1】:

    提交后,您需要使用git push将提交推送到外部存储库(GitHub)。

    【讨论】:

      【解决方案2】:

      然后您需要将更改推回原点。

      // of the format: git push [alias] [branch]
      
      git push origin master
      

      提交时,您仅将更改提交到计算机上的本地存储库。

      【讨论】:

        猜你喜欢
        • 2012-06-25
        • 1970-01-01
        • 1970-01-01
        • 2012-08-26
        • 2015-03-09
        • 2017-06-11
        • 2023-03-29
        • 2011-06-14
        • 2013-03-30
        相关资源
        最近更新 更多