Home > Net >  How to delete all the commits I have made to a repository and to permanently delete a Git repository
How to delete all the commits I have made to a repository and to permanently delete a Git repository

Time:11-21

I was brought on board as a contractor to do some work on a forked open source repository. After finishing the work and a successful launch, the hirer is ghosting me and refuses to compensate me as agreed. How can I either: permanently delete the repository without the option to restore (I still have access to Git as the owner and I'm the only one who pushed commits) or permanently delete all my pushed commits from history.

Side question: If a site is deployed on Cloudflare off a specific branch and I delete the repository, what happens? I'm assuming the webpage stays deployed based off whatever was compiled last.

CodePudding user response:

In the setting of the repo scroll down to bottom you will get the danger zone. There you can archive or delete the repo. for detailed guide visit https://docs.github.com/en/repositories/creating-and-managing-repositories/deleting-a-repository

CodePudding user response:

There are many ways to restore data depending on the infrastructure and the language that is used. Without more specific informations it is impossible to say how to fully delete the data. Anyways to override the history of a git branch you could use:

git push -f {branchName}

CodePudding user response:

Vist : https://docs.github.com/en/repositories/creating-and-managing-repositories/restoring-a-deleted-repository

To restore deleted repo you can try sending a mail to [email protected]

  • Related