Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

migrate git repository

git clone --mirror <url_of_old_repo>
cd <name_of_old_repo>
git remote add new-origin <url_of_new_repo>
git push new-origin --mirror
 
PREVIOUS NEXT
Tagged: #migrate #git #repository
ADD COMMENT
Topic
Name
3+1 =