Delete forked repo from GitHub

后端 未结 12 2066
灰色年华
灰色年华 2020-12-04 04:26

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

相关标签:
12条回答
  • 2020-12-04 04:55

    Sweet and simple:

    1. Open the repository
    2. Navigate to settings
    3. Scroll to the bottom of the page
    4. Click on delete
    5. Confirm names of the Repository to delete
    6. Click on delete
    0 讨论(0)
  • 2020-12-04 04:56

    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.

    0 讨论(0)
  • 2020-12-04 04:57

    Deleting it will do nothing to the original project. Editing it will only edit your fork on your repo page.

    0 讨论(0)
  • 2020-12-04 04:57

    Select repo->Settings->(scroll down)Delete repo

    0 讨论(0)
  • 2020-12-04 05:00

    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).

    0 讨论(0)
  • 2020-12-04 05:01

    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

    0 讨论(0)
提交回复
热议问题