After changing the git remote branch, why does the local computer always prompt that there is no code that has been pushed?
高洛峰
高洛峰 2017-05-02 09:30:57
0
1
625

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?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template