저장소 통채로 복사하기 (bit-bucket to GitHub)


참고자료

git clone --mirror: to clone every references (commit, tags, branches)

git push --mirror: to push everything


git clone --mirror https://bitbucket.org/exampleuser/repository-to-mirror.git

# Make a bare mirrored clone of the repository

cd repository-to-mirror.git

git remote set-url --push origin https://github.com/exampleuser/mirrored

# Set the push location to your mirror

git push --mirror


완전이 제거하고 이동 시키는 방법

// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/

// See also: http://www.paulund.co.uk/change-url-of-git-repository

$ cd $HOME/Code/repo-directory

$ git remote rename origin bitbucket

$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git

$ git push origin master

$ git remote rm bitbucket


가장 간단한 방법은 아래와 같이 Github 기능을 이용하는 것이다.

1) Create a new empty repository in GitHub (without readme or licesne, you can add them before) and the following screen will show

2) Inside to import code option you paste your bitbucket URL's repo



+ Recent posts