Delete forked repo from GitHub

后端 未结 12 2067
灰色年华
灰色年华 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:03

    select project to delete->settings->buttom click delete button->enter name of the repositories

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

    No, it will not affect your original repository, just make sure that the repo address looks like "youGitName/TheRepository" and not like "OtherPersonGitName/TheRepo".

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

    Just delete the forked repo from your GitHub account.

    https://help.github.com/articles/deleting-a-repository/

    • If I go to admin panel on GitHub there's a delete option. If I delete it as the option above, will it make any effect in the original one or not?

    It wont make any changes in the original one; cos, its your repo now.

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

    Answer is NO. It won't affect the original/main repository where you forked from. (Functionally, it will be incorrect if such an access is provided to a non-owner).

    Just wanted to add this though.

    Warning: It will delete the local commits and branches you created on your forked repo. So, before deleting make sure there is a backup of that code with you if it is important.

    Best way would be getting a git backup of forked repo using:

    git bundle 
    

    or other methods that are familiar.

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

    By far the easiest way is to log in gitHub account:

    1. Click to your repository for example yourUsername/yourRepository for example mbaric/zpropertyz.
    2. Then in the main toolbar of github click on Settings
    3. Scroll to the bottom of the page to the section called Danger Zone and you will find Delete this repository button
    4. When you click it another pop up will appear here you need to type in your github username and the name of your repository in this format gitHubUsername/nameOfTheRepository and click on the button below which says: I understand the consequences, delete the repository
    5. If you are having trouble to do it, below are the images that can be checked…

    2020-01-15 - Here are images. Enjoy.





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

    Deleting your forked repository will not affect the master(original) repository.

    Like I have shown an example by deleting a forked repo

    This is my forked repo (Image)

    Deleting the forked repo

    And no changes to the original repository.

    The master repo is something like an original one.

    Forking is same as creating a xerox copy of the original one. Even if you get your xeroxed paper damaged, will it be that the original document also gets damaged. Obviously No.

    So its the same as that.

    Hope this helps.

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