I've been reading up on Orphaned git branches. My situation is described in the git manual under checkout which I found from this answer
This can be useful when you want to publish the tree from a commit without exposing its full history. You might want to do this to publish an open source branch of a project whose current tree is "clean", but whose full history contains proprietary or otherwise encumbered bits of code.
However, I'd like to work on that open source branch not just publish it. That is, I've pushed an orphan to GitHub, remote name origin
. Our full history remains internal, remote name internal
. On my local machine, I'd like to do development work pushing and pulling from origin
, building on the orphaned branch, and occasionally our team would like to copy (push? merge?) our local & origin branches to internal
.
I haven't found a question and answer that addresses this use case. Is this possible?