I have pushed my code to the branch name master, but the default branch is main
So, the main problem is, my code files is not visible on the main branch, where people navigate
Can anyone help me to merge the master name branch to the main branch which is the defualt brach, so when people visit my project, the code will be seen on that branch.
**The main branch is looking like this** [![enter image description here][2]][2]
CodePudding user response:
You can clone the main branch in your local . And then trigger the command "git merge master" . Then push the main branch .
CodePudding user response:
you can push your master branch then use pull request to the main branch in github or gitlab and it will merge with your main branch, but make sure that you don't have any conflicts.