카테고리 없음

Git 저장소 복사하기

behonestar 2016. 4. 19. 11:48

mkdir foo; cd foo 

# move to a scratch dir


git clone --bare https://github.com/exampleuser/old-repository.git

# Make a bare clone of the repository


cd old-repository.git

git push --mirror https://github.com/exampleuser/new-repository.git

# Mirror-push to the new repository


cd ..

rm -rf old-repository.git  

# Remove our temporary local repository


https://help.github.com/articles/duplicating-a-repository