Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub: What happens to forks when a repo changes ownership?

Tags:

git

github

If a repo changes ownership from owner/theRepo to newOwner/theRepo are its forks automatically updated to reference the new location of the moved repo? Or does anything need to be done manually?

like image 863
edst Avatar asked Apr 06 '18 22:04

edst


People also ask

Does forked repo automatically update?

Sync from the UI Clicking on that you have the possibility to compare the changes made in the source repo with the ones made in your forked repo, and also to automatically fetch and merge them into your repo.

Can a forked repo be renamed?

Previously, when you forked a repository the fork name would default to the same name as the parent repository. In some cases, that wasn't ideal because you wanted the fork to have a different name. Your only option was to rename the fork after it was created.

Are forks private GitHub?

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories. The correct way of creating a private frok by duplicating the repo is documented here.

How do I sync my fork repo with original repo?

Go to your fork, click on Fetch upstream , and then click on Fetch and merge to directly sync your fork with its parent repo. You may also click on the Compare button to compare the changes before merging.


1 Answers

From the documentation:

If the transferred repository has any forks, then those forks will remain associated with the repository after the transfer is complete

like image 185
osowskit Avatar answered Sep 18 '22 17:09

osowskit