How to delete an accidentally forked GitHub project and … clone it in a proper way! … moreover some tips on how to clone a project ;-)

I was looking to a GitHub project that I wanted to clone in my desktop to try some samples: first of all I updated the GitHub Windows client that I suggest you to install if you want to follows some GitHub projects!
However,  didn’t remember how to do it and I unintentionally clicked the fork it button: from then, it appears as a new project for my account (as it is clearly explained in this  help page). Even thought editing my local copy and even make a sync will only edit my fork on my repo page, I won’t be able to update my local copy with future master project changes: so I wanted to delete, in my GitHub account, that accidentally forked project.

I found the deletion procedure of my fork not so easy to be found so in the following I’ll give you some advices how to do it: then, in a second section of this post, I’ll show you how to clone a project without forking it!! 😉


1) Delete a forked project. 

First of all, go to your administration page clicking on your account name (e.g. continienzo) at the top right menu, then go to the Repositories tab to see all your projects in GitHub, like the forked one too.

ScreenHunter_286 Oct. 26 10.22


ScreenHunter_287 Oct. 26 10.23

If you want to delete one of them (e.g. SignaturePad), click on its name to go to its repository page: please notice that, on the bottom of the right side menu of this page, you can see that the HTTPS clone URL is the one related to my fork (e.g. and not to the master project.

ScreenHunter_289 Oct. 26 10.24

To delete this forked project you must go to a not easy to find section, clicking the Settings link (always in the right side menu): at the bottom of that Settings page there is a red Danger Zone, that is the relevant one for deleting that repository.

ScreenHunter_290 Oct. 26 10.24 ScreenHunter_291 Oct. 26 10.25

After clicking the Delete this repository button, you will be asked to type the name of the repository you want to delete, that is your loginName/projectName (e.g. continienzo/SignaturePad), and click on the I understand the consequences, delete this repository button.

ScreenHunter_292 Oct. 26 10.25

ScreenHunter_293 Oct. 26 10.25


2) How to correctly clone a project on our desktop

First go to the project’s GitHub repository you want to clone. Then, if not already done, login into GitHub site. Click the Clone in Desktop button, under HTTPS clone URL at the bottom of the right side menu.

BECAREFUL that, if you are not logged in the GitHub site when you click the Clone in Desktop button, it is always asked to you to install the “GitHub for Windows” application, even thought it is already installed!! So, please remember to log in before clicking that button

ScreenHunter_294 Oct. 26 10.26

ScreenHunter_09 May. 05 15.52

Request to install GitHub for Windows (it happens also if you are not logged!!)

Request to install GitHub for Windows (it happens also if you have already installed it BUT you are not logged!!)

If you have the GitHub Windows client installed on your desktop, the following popup will be prompted to allow the site to open that program: that client will be launched and ask you for the directory where to clone that project.


ScreenHunter_298 Oct. 26 10.28

ScreenHunter_299 Oct. 26 10.28

At the end, on the left side of the GitHub Windows client, also that new project will be listed among the previous ones and you can go to the directory of the cloned code, right clicking on the project name and choosing the Open in explorer overlay menu.

ScreenHunter_300 Oct. 26 10.28


An alternative way to clone in desktop is to drag the URL of the repository from your browser onto the desktop GitHub client: therefore resize your browser window so you can drag the repository onto the GitHub windows application. It will immediately clone that repository to your local GitHub repository even if you are not signed in.

ScreenHunter_16 Jun. 05 15.11

ScreenHunter_17 Jun. 05 15.12 ScreenHunter_18 Jun. 05 15.12

Another way that works even if you are not logged in GitHub, is to drag the URL of the repository from your browser onto the desktop GitHub application, possibly resizing the browser window so you can drag the repository onto the GitHub windows application: with Internet Explorer this is very easy!
GitHub URL to be dragged.PNG
On the contrary, I did not find any way to do the same with Microsoft Edge browser …

Informazioni su Enzo Contini

Electronic engineer
Questa voce è stata pubblicata in Smartphone OS, Windows. Contrassegna il permalink.

6 risposte a How to delete an accidentally forked GitHub project and … clone it in a proper way! … moreover some tips on how to clone a project ;-)

  1. Anonimo ha detto:

    thank you

    "Mi piace"

  2. Bob ha detto:

    Did this by accident too. As a noob looking at a project page, there’s this fork button right up front right, one click and it just replicates everything automatically, no backtrack or warning.Easy to use, but Not a good UI design for new users exploring git in my opinion.

    Piace a 1 persona

  3. Miroslav Janosik ha detto:

    Thanks, helped me to delete accidental fork 🙂

    Piace a 1 persona

  4. Pingback: How to install and try the Windows 10 preview … and start developing with Visual Studio 2015 CTP! | Enzo Contini Blog

Lascia un Commento/Leave a comment

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di

Stai commentando usando il tuo account Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati derivati dai commenti.