search

Home  >  Q&A  >  body text

After changing the git remote branch, why does the local computer always prompt that there is no code that has been pushed?

That’s it. Before, my local master branch tracked the remote master branch. Now I want to open another branch remotely and let everyone submit code to the newly opened branch.
I opened a branch on gitlab called "kislev-dev", and then I changed the project path.git/config

As shown in the picture, I have changed the two places in the arrow part. Now after I push on the local master, it will be pushed to the remote branch "kislev-dev" by default. However, although the push can be successful, my local computer still prompts that there is unpush code, as shown in the figure

What is going on? Is there anything else to change?

高洛峰高洛峰2796 days ago601

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-02 09:32:57

    It means that the current branch has nine more commits than master. You can ensure that master is updated synchronously through merge

    reply
    0
  • Cancelreply