3

I'm trying to move a project repository from AWS CodeCommit to BitBucket by using

git remote set-url origin git@bitbucket.org:******/********.git

to change the repository and then push the code to bitBucket repository but AWS CodeCommit not allowing. Is there any other solution to move codes from AWS CodeCommit to BitBucket keeping all the previous commit records.

Sovan Jana
  • 83
  • 2
  • 6
  • So, you created an empty repository on bitbucket, set up the new remote on your local repo, tried to push and it failed? – eftshift0 Mar 23 '17 at 16:29
  • exactly like that.. – Sovan Jana Mar 23 '17 at 16:58
  • What is the error message when you try to push to bitbucket? – eftshift0 Mar 23 '17 at 17:11
  • 1
    Problem solved. first clone the repository from aws codecommit then open git bash from inside of the cloned folder and change remote origin as it is in the question and then push to exact branch. It asked for git credential for bitBucket once i put right credential the code pushed to bitBucket repository . thanks Edmundo for fast response thanks – Sovan Jana Mar 23 '17 at 17:31
  • I thought you already had the two remotes set up (you would have one called bb and another called aws, for example). Glad you already solved it. – eftshift0 Mar 23 '17 at 17:33
  • @SovanJana Can you please answer your question and mark it? – Amit Kumar Gupta Dec 09 '18 at 01:21

0 Answers0