I\'m starting with git and GitHub and there\'s a project I\'m watching on GitHub. I unintentionally clicked to fork it. Now it appears as a new project to me.
I have
Sweet and simple:
There will not be any harm deleting the forked repositories. You can again fork that. It won't change the original code. The flow is like this...
1) You fork a repository. Just think of this as another copy of code which you can access or make changes to. The url of this repository will be of the form https://github.com/your-user-name/original-repo
.
2) You make some changes to that in your local machine and push them. Now the copy you created will be updated, but not the original one from which you have forked your repo.
3) If you want the changes you added to your forked repo to be applied to original repo(this may be helpful to the people who are organizing the repo) then you have to create a pull request
which you can do through UI. Then if they like your contribution, they will merge
that with their code.
Generally this is what open source organizations do.
Deleting it will do nothing to the original project. Editing it will only edit your fork on your repo page.
Select repo->Settings->(scroll down)Delete repo
There are multiple answers pointing out, that editing/deleting the fork doesn't affect the original repository. Those answers are correct. I will try to add something to that answer and explain why in my answer.
A fork is just a copy of a repository with a fork relationship.
As you can copy a file or a directory locally to another place and delete the copy, it won't affect the original.
Fork relationship means, that you can easily tell github that it should send a pull request (with your changes) from your fork to the original repository because github knows that your repository is a copy of the original repository(with a few changes on both sides).
Just for anybodies information, a pull request(or merge request) contains code that has been changed in the fork and is submitted to the original repository. Users with push/write access(may be different in other git servers) on the original repository are allowed to merge the changes of the pull request into the original repository(copy the changes of the PR to the original repository).
I had also faced this issue. NO it will not affect your original repo by anyway. just simply delete it by entering the name of forked repo