Connecting git branches with no shared history on Github
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When creating a new repository on Github, I made the mistake of pushing a branch ORIGINAL that I did not want as the default branch first. My goal is to make a pull request from this branch into an empty master branch. My route to attempt to resolve this has been rather circuitous, as I am learning as I go: Created a master branch in the Github UI, which branched from ORIGINAL. This was all wrong because I needed an empty master branch. Created a new orphan branch named master and force pushed it to Github, then set master as the default