When Git submitted the branch code, it was found that there was no such branch on the gitlab.

I wrote code on the header branch, and after changing it, I wanted to submit it and merge it into master, but it turned out that I didn"t have the header branch I wrote on gitlab.
but is it visible to execute Git branch on webstorm?

gitLab header ......

I can"t submit the code now. I"d like to ask the gods, what might be going on?

Mar.20,2021

that branch is local but not remote


you push the local header branch to GitLab and then Pull request merge it into master


this problem I also encountered, how difficult to solve! The answers of the experts were varied, but I didn't get it anyway. Suddenly came up with an idea, that is, when master submitted, it was the branch of: git push origin master,. That's the name of the git push origin branch. Submit, it's a success! At this time, there is still no branch in github that needs to be on the main branch, pull all the code to the child branch, and merge the git merge branch name. And then in git push origin master, OK. So there's code on it.

Menu