Skip to main content
typo
Source Link
JonnyRobbie
  • 624
  • 6
  • 17

Is it possible to 'de-fork' a GitHub repo? The situation is as follows. I have forked a repo and then added some scripts to it. But then I realized it might be more sensible to use the original repo as a git submodule. So I want to refactor my now-fork in such a way that it is no longer a fork, but uses the original repo as a submodule.

I believe I could simplesimply remove all files forked from the original repo (leaving only my own added scripts), add the original as a submodule and commit. But then I guess it would still be flagged as a fork on github.

What is the best practice here?

Is it possible to 'de-fork' a GitHub repo? The situation is as follows. I have forked a repo and then added some scripts to it. But then I realized it might be more sensible to use the original repo as a git submodule. So I want to refactor my now-fork in such a way that it is no longer a fork, but uses the original repo as a submodule.

I believe I could simple remove all files forked from the original repo (leaving only my own added scripts), add the original as a submodule and commit. But then I guess it would still be flagged as a fork on github.

What is the best practice here?

Is it possible to 'de-fork' a GitHub repo? The situation is as follows. I have forked a repo and then added some scripts to it. But then I realized it might be more sensible to use the original repo as a git submodule. So I want to refactor my now-fork in such a way that it is no longer a fork, but uses the original repo as a submodule.

I believe I could simply remove all files forked from the original repo (leaving only my own added scripts), add the original as a submodule and commit. But then I guess it would still be flagged as a fork on github.

What is the best practice here?

Source Link
JonnyRobbie
  • 624
  • 6
  • 17

De-forking a Github repo

Is it possible to 'de-fork' a GitHub repo? The situation is as follows. I have forked a repo and then added some scripts to it. But then I realized it might be more sensible to use the original repo as a git submodule. So I want to refactor my now-fork in such a way that it is no longer a fork, but uses the original repo as a submodule.

I believe I could simple remove all files forked from the original repo (leaving only my own added scripts), add the original as a submodule and commit. But then I guess it would still be flagged as a fork on github.

What is the best practice here?