Delete forked repo from GitHub

后端 未结 12 2111
灰色年华
灰色年华 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 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).

提交回复
热议问题