Skip to content

Why did a branch in a fork show up in the original repo? #22789

Discussion options

You must be logged in to vote

Hi @egil 👋

I know it’s been a while since you originally posted and it looks like that branch has since been deleted. I did want to shed some light for you on the subject nonetheless.

On GitHub, commits made in forks are stored in a network that is shared with the parent repository. This is so that any commit that exists in both the parent repository and a fork only has to be stored in our database once. However, it also means that a commit that exists only in a fork can still be viewed via a URL containing the username that corresponds to the parent repository.

That branch would have been created when a commit from that user had been merged into your repository.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants