Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the consequences of renaming a fork on GitHub?

If I fork open-source repository A on GitHub and rename it to B via the Settings tab will I still be able to:

  1. Merge later changes from A into B?
  2. Submit pull requests to A based on changes I have made to B?

Are there any other potential consequences of a rename that I haven't thought of?

like image 644
Imran Avatar asked Dec 27 '17 22:12

Imran


People also ask

Can you rename a GitHub fork?

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. Now you can customize the fork name at the same time you're creating it.

What happens when you rename a repository in GitHub?

One concern many users have is that the renaming of a GitHub repository will cause problems with Git clone, push, pull, and fetch operations, as the GitHub URL is changed, and that often leads to a repository not found error.

What happens to forks when a repository is deleted or changes visibility?

Deleting your repository or changing its visibility affects that repository's forks. Warning: If you remove a person's access to a private repository, any of their forks of that private repository are deleted. Local clones of the private repository are retained.

What happens to a forked repo if the original is deleted?

Note that after deleting the repository, the action cannot be undone. Also note that if you are deleting a forked repository, deleting it will only remove it (including any changes you have made to it) from your own GitHub - you won't accidentally delete the original project (phew).


1 Answers

Yes

you can rename your fork without losing the ability to create pull requests and merge changes. Just make sure that you update the URL of the remote in your local clones.

(I forked a project on GitHub, changed its name. Everything still works)

like image 125
knittl Avatar answered Oct 05 '22 23:10

knittl