Git How do you force a normal branch after forking (not doing with pull request)


Strange requirement but in case you still need it..

Lets say you forked a repo and for some reason instead of creating a PR, you wanted to push that as a normal branch.

Please ensure you created a branch first and then check out

git branch mytarget 

git checkout mytarget

git push mynewBranch.git

Comments