Buy All 121 Premium WordPress Themes for $59.99
No Additional Fees, Pay Once and Use Unlimited Time for Unlimited Domains, Free Lifetime Updates

Duplicate GitHub Repo including history, tags, branches

Here are all necessary steps if you need to migrate a github repository from one organization to another and you want to include history of commits, branches, and tags:

1.Open terminal and clone the source repo using the following command:

git clone --bare

2. It will create a local folder i.e. sourcerepo.git, cd into it

3. Push the change to the target folder using the following command:

git push --mirror

Leave a Reply