garysimpson.dev
Mobile development with swift and flutter

Git Push Local to Other Remote

February 13, 2025 at 6:30AM

Lets be honest. Something went horribly wrong with my working branch. So much so that using git rebase develop or using my standard back merge git pull origin develop did not help.

A quick ChatGPT query of (git push local to repo to a different remote branch) was helpful in returning the following.



git push <remote_name><local_branch_name>:<remote_branch_name>

I added -f to force my changes:



git push origin feature_fix:feature -f

Happy Coding ;-)