Hi,
All the import instructions I have found are related to source repository with URL, http preflix.
If i normally do a "git clone git:/git/software/xxx.git" with git is the hostname, how can I import this to BB and maintain the history?
Thanks.
B.
Hi Barry,
To import an exiting repository using SSH (that is what the git: prefix means) you need to:
git clone --bare git:/git/software/xxx.git
cd my_repository
git remote add bitbucket ssh://git@bitbucket:7999/pr/xxx.git
git push --all bitbucket
git push --tags bitbucket
You can also replace the origin URL instead of adding an extra one for Bitbucket. Just use the below command in step 5 instead of git remote add...
git remote set-url origin ssh://git@bitbucket:7999/pr/xxx.git
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.