Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 3

feature request: fork my own repository

I have a base repository as a template for others to fork in order to use (wmacevoy/latex-docker).  But I can't fork it into my own account.  Why can't I just fork my own repo?

2 Replies
Moderator
Message 2 of 3

Re: feature request: fork my own repository

Hi @wmacevoy ,

 

Thanks for this feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.

 

Cheers!

Pilot Lvl 1
Message 3 of 3

Re: feature request: fork my own repository

HI,

 

This is interesting, the reason you can't fork your own repo is that a fork is not actually what people think it is.

 

It's a common perception that a fork is a copy of some other repo, it looks like one and most of us thinks it behaves just like a copy but it isn't.

 

Ever wondered why forking even a huge repo takes just a few seconds? As I say a fork is not a copy but rather a set of branches on the main repo that only you can see.

 

When you look at master on your fork you're actually looking at a private branch on the main repo but who's name is dispalyed to you as master that is associated with your GitHub account.

 

It's as if GitHub name the branches something like wmacevoy.master but strips of the front part in the GitHub UI.

 

So there are no copies of repos in GitHub (unless you create a copy yourself but you'd not do that by forking).

 

So because forks are just a set of per-user branches you can't fork because you are the same user.

 

I'm sure GitHub could support this though if they wanted.