Github - How to create a second fork of a given repository?

1

Let's say I have a fork in the repository user\original as meuser\original .

In case I want to create a new fork of the first, how do I do? In github when clicking on create a new fork it only redirects to the existing fork.

How would I be if I rename fork meuser\original as meuser\original-OLD and want to create a new fork meuser\original with the latest updates?

    
asked by anonymous 16.03.2016 / 20:15

2 answers

1

I ended up finding an article on how to do this.

The procedure is called "Dupliforking" and the article link is this: link

Below a translation:

Suppose you want to create the "MillionDollars" repo.

Clone the original repository (here the bootplate) and cd up to the folder.

git clone https://github.com/enyojs/bootplate.git MillionDollars

cd MillionDollars

Initialize the sub-repositories.

git submodule update --init

Go to the GitHub website and create a new repository with the chosen name ("MillionDollars").

Point the bootplate clone to your new repository (This step changes where commits are downloaded and sent)

git remote set-url origin [email protected]:<your user name>/MillionDollars.git

Text editors can also directly edit the file MillionDollars/.git/config :

[remote "origin"]
    url = [email protected]:<your user name>/MillionDollars.git
    ...

Push your repository

All set!

    
16.03.2016 / 21:00
0

In order to create a fork, because you do not create a branch in the same repository instead of a fork, it preserves all previous commits, then you can merge whatever you want with the master.

Edit: Removed the link, after realizing the real idea of the question:)

    
16.03.2016 / 20:24