In order to execute Git commands, you need to download Git Bash and install it. Once done,

 

Step 1: Launch Git Bash

 

Step 2: Let’s create a bare clone of the repository that you wish to duplicate

git clone --bare https://github.com/username/repo-you-wish-to-duplicate.git

 

Step 3: Duplicate a repository using mirror push command, to do that you need to change directory to the bare-cloned repository folder.

cd repo-you-wish-to-duplicate.git

 

Now, mirror or duplicate the repository using the below command.

git push --mirror https://github.com/username/duplicate-repository.git

 

That’s it! Go to your GitHub account and view the duplicate repository.

 

Step 4: Well, you don’t need the bare-cloned repository in the local machine, so just go ahead and delete it.

 

Do you see Repository not found error while pushing the code change? And now stucked, don't worry hire our admins they will help you to fix the issue.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)