Can anyone please let me know how I can create new branch on GitHub, and push code over there.
Finally, I want to merge all the code in the main
file.
Can anyone please let me know how I can create new branch on GitHub, and push code over there.
Finally, I want to merge all the code in the main
file.
If you want to merge the code on main from a branch on GitHub, that is called a PR (Pull Request)
You can create one on GitHub from your workstation, using GitHub gh CLI (to be installed first).
See gh pr create
When the current branch isn't fully pushed to a Git remote, a prompt will ask where to push the branch and offer an option to fork the base repository.
Use--head
to explicitly skip any forking or pushing behavior.
So make sure to work locally on a branch which is not main
.