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

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type