NoNameStackExchange
NoNameStackExchange

Reputation: 404

Github usage : delete and recreate a fork?

I did contribute to a github project.

I dont' want anyone to fork from my version on github, but I prefer them to feed themselves from the original project. So I want to delete my "master branch" which represent a "Delete repository" operation....

My question is: If I delete it, and one day I would like to contribute again to the same project, will I get some strange behaviors on a "re-fork" ? Will I loose some information like issues etc... ?

Does anyone with extensive experience on github can hint me ont that ?

Upvotes: 12

Views: 9491

Answers (1)

VonC
VonC

Reputation: 1327314

You can delete your fork actually (not just the master branch), this can be done in the repo's settings danger zone as described on https://docs.github.com/en/repositories/creating-and-managing-repositories/deleting-a-repository

Once deleted, you will be able (as seen here) to re-fork the original project at any time.
As mentioned here, as long as your PR (Pull Requests) are accepted, you can delete your fork. Or you can delete it even if your PR is pending... but it would then disappear along with your fork (it would still be visible in the upstream original repo though).

Official documentation: "Tidying up after Pull Requests" (for branches only, but you can apply the same idea to fork deletion).

Upvotes: 11

Related Questions