GauravP GauravP - 17 days ago 5
Git Question

Can I refork the deleted repository in the github?

Consider this scenario -
I have two repositories in the github
1) Repository A with project as ProjectA
2) Repository B


I forked projectA from repository A into repository B

Now I have the repositories status as -
1) Repository A with project as ProjectA
2) Repository B with forked project from Repository A as ProjectA


Now I made number of changes in forked project ProjectA in repository B.

Now I want to delete the forked project ProjectA in repositoy B.

I could easily do that by going to settings -> Delete this repository of repository B.

My question is 'After deleting the projectA in repository B, Can I refork the projectA from repository A to repository B?'.

The question could be silly but deleting the project in github is a risky affair so just wanted to confirm before doing this.

Answer

After deleting the projectA in repository B, Can I refork the projectA from repository A to repository B?

Yes, considering the name "repoB" is not taken (since you just deleted it, which deletes the fork)
It won't do anything to repoA.

Even if somehow repoB wasn't allowed, you would still be able to fork repoA under a different name.