How can I find the location of origin/master in git, and how do I change it?

前端 未结 13 561
悲哀的现实
悲哀的现实 2020-12-02 03:33

I\'m a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-yo

13条回答
  •  难免孤独
    2020-12-02 04:00

    I had the problem "Your branch is ahead of 'origin/master' by nn commits." when i pushed to a remote repository with:

    git push ssh://git@xxx.repositryhosting.com/yyy/zzz.git
    

    When i found that my remote adress was in the file .git/FETCH_HEAD and used:

    git push
    

    the problem disappeared.

提交回复
热议问题