Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clone #repo
ADD COMMENT
Topic
Name
8+8 =