Answers for "how to copy git repository to another repository"

0

clone from one repo to another

First clone the repository you want to work with. This step could be skipped if you want it all to happen in the folder you are already in.

git clone file:///path/to/repo/
Cloning will bring over the remotes specified in that directory. So you'll need to remove the remotes you don't want.

git remote rm <remote>
And add the ones you do, after you have created your remote repository.

git remote add origin <url>
Posted by: Guest on May-24-2020
0

how to copy git repository to another repository

--First get original repo.
$ git clone --bare https://gitsite.com/yourusername/original-repository.git
$ cd original-repository
$ git push --mirror https://gitsite.com/yourusername/new-repository.git
Posted by: Guest on September-05-2021

Code answers related to "how to copy git repository to another repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language