Pushing an existing Git repository to Github only sends about half the commits?

前端 未结 7 2149
天涯浪人
天涯浪人 2020-12-31 14:17

I have a local Git repository I\'ve been developing under for a few days: it has eighteen commits so far. Tonight, I created a private Github repository I was hoping to push

7条回答
  •  北海茫月
    2020-12-31 14:44

    Check if you are pushing the correct branches, and that the branches actually have what you think they have. In particular, check if you do not have a detached HEAD, which can be quite confusing if not done on purpose.

    The easiest way to check is to use gitk --all, which shows graphically all the branches, the HEAD, and more.

提交回复
热议问题