推送未在Github上显示的提交

时间:2016-05-23 17:18:29

标签: git github

我在Github上有一个repository,我已经推了好几个月了。今天我准备了几个提交并将它们推送到repo但它们没有出现在Github Web界面上。我还将它们推送到我所在机构的Gitlab实例,它们已经出现在它的Web界面上。

这里有关于我的存储库状态的一些信息:

$ git remote -v
github  git@github.com:TransformingMusicology/tabcode-haskell.git (fetch)
github  git@github.com:TransformingMusicology/tabcode-haskell.git (push)
gitlab  git@private.com:transforming-musicology/tabcode-haskell.git (fetch)
gitlab  git@private.com:transforming-musicology/tabcode-haskell.git (push)

$ git push github master 
Counting objects: 34, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (31/31), done.
Writing objects: 100% (34/34), 4.82 KiB | 0 bytes/s, done.
Total 34 (delta 18), reused 0 (delta 0)
To git@github.com:TransformingMusicology/tabcode-haskell.git
   6f00bd1..1237971  master -> master

$ git push github master
Everything up-to-date

$ git branch -v
* master           1237971 Added rest tests
  xmlgen-serialise 54a4033 Removed unnecessary MEI duration to RhythmSign conversion function

$ git ls-remote github
12379718429dc54fa5f947b310b927b59e665c4a    HEAD
12379718429dc54fa5f947b310b927b59e665c4a    refs/heads/master
f52c681257855b9709ccae1a14f452683cfb00f3    refs/heads/xmlgen-serialise

$ git ls-remote gitlab
12379718429dc54fa5f947b310b927b59e665c4a    HEAD
12379718429dc54fa5f947b310b927b59e665c4a    refs/heads/master
f52c681257855b9709ccae1a14f452683cfb00f3    refs/heads/xmlgen-serialise

$ git ls-remote .
12379718429dc54fa5f947b310b927b59e665c4a    HEAD
12379718429dc54fa5f947b310b927b59e665c4a    refs/heads/master
54a403330731ca43c1cec953a7829d7f44e83c8e    refs/heads/xmlgen-serialise
12379718429dc54fa5f947b310b927b59e665c4a    refs/remotes/github/master
f52c681257855b9709ccae1a14f452683cfb00f3    refs/remotes/github/xmlgen-serialise
12379718429dc54fa5f947b310b927b59e665c4a    refs/remotes/gitlab/master
f52c681257855b9709ccae1a14f452683cfb00f3    refs/remotes/gitlab/xmlgen-serialise
ac5249bc29a4aff405f915ee0ff0e10dbddcde1d    refs/remotes/igor/master

$ git log
commit 12379718429dc54fa5f947b310b927b59e665c4a
Author: Richard Lewis <richard.lewis@gold.ac.uk>
Date:   Mon May 23 17:17:22 2016 +0100

    Added rest tests

commit f248550fa280174ec3fc0fa4c4e94b19e638c0d4
Author: Richard Lewis <richard.lewis@gold.ac.uk>
Date:   Mon May 23 17:16:57 2016 +0100

    Corrected rest parser

所以看起来git至少认为远程HEAD分支的master指向123797。但Github的Web界面并没有显示出来。在该提交和我的本地回购HEAD之间还有七个提交:

$ git log --oneline
1237971 Added rest tests
f248550 Corrected rest parser
7612616 Added meter sign tests
9137281 Corrected meter sign parser
c06eec6 Setting up test suite
9de4ee3 Code tidying
61f0d48 Tidying up Cabal file

任何想法在这里发生了什么?

0 个答案:

没有答案