기본 콘텐츠로 건너뛰기

git repository를 bitbucket에서 github로 옮기는 방법

터미널 창에서 다음과 같이 입력:
1) git clone --mirror (https://bitbucket.org/exampleuser/repository-to-mirror.git) <- bitbucket URL을 입력
# Make a bare mirrored clone of the repository

2) cd repository-to-mirror.git <- 해당 .git 폴더로 이동

3)git remote set-url --push origin https://github.com/exampleuser/mirrored <- github URL 입력
# Set the push location to your mirror

3) git push --mirror


댓글