Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #copy #git #repository #repository
ADD COMMENT
Topic
Name
4+7 =