Post

Git clone a repo to another repo

1. 클론하기

1
2
//  git clone --bare {repo to clone}
 git clone --bare https://github.com/soheeparklee/soheeparklee.github.io.git

2. 여기에

1
2
3
// find file
 cd soheeparklee.github.io.git

3. mirror push

1
2
// git push --mirror {where to clone}
git push --mirror https://github.com/soheeparklee/githubBlog_forGreen.git

4. back to main

1
cd ..

5. erase

1
2
// rm -rf {what to erase}
rm -rf soheeparklee.github.io.git
This post is licensed under CC BY 4.0 by the author.