Web Applications Asked by Nathan Arthur on December 6, 2021
I forked a repository as a starting point for a new project, never intending to submit pull requests to the original repo. It’s become annoying to have to select my own master branch every time I want to merge a branch in the GitHub interface.
How can I remove the reference to the upstream so that my own master branch will be automatically selected when creating merge requests?
I tried editing .git/config
as suggested here, but my config file does not include any reference to the upstream.
git remote rm upstream
Just discovered this by plugging-n-chugging. This is the command that removes the specified upstream.
Make sure to verify that the old upstream has been removed:
git remote -v
Anything marked with "upstream" should have been removed.
Now you can simply add a new upstream and start over (an example for Github):
git remote add upstream https://github.com/USERNAME/wellmap.github.io
Hope I helped!
Answered by Misha Lubich on December 6, 2021
Unfortunately, it doesn't seem to be possible. However, for a small project like mine, I was able to go with the less-than-ideal solution without too much pain:
Answered by Nathan Arthur on December 6, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP