Git says local branch is ahead of remote after having pulled from remote

前端 未结 2 846
梦如初夏
梦如初夏 2021-02-18 23:02

I’m sorry if the title isn’t clear, but this is a weird problem.

I git checkout to my \"stage\" branch and git pull to get my partner’s latest

2条回答
  •  猫巷女王i
    2021-02-18 23:59

    Try this command:

    git log origin/stage..stage
    

    This show you what you are ahead of the remote. Do a git rebase origin/stage / git push as appropriate.

    If it doesn't help, see this question : 'git pull origin mybranch' leaves local mybranch N commits ahead of origin. Why?

提交回复
热议问题