Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I'm encountering issues migrating a repository from SVN to Bitbucket

Rogerio
Contributor
November 21, 2024

 

 

Hi there,

I'm encountering issues migrating a repository from SVN to Bitbucket. The challenge arises from the need to simultaneously migrate the repository and enable Git LFS during the process.

I'm attempting to address this by using the following script:

Explanation of Changes:
git svn clone --authors-file=authors.txt <svn repo url> 04_89600_VSA

git lfs install

git lfs track "BL-CODE-17.21-ELD-04_89600 VSA*.exe"

git lfs track "BL-CODE-17.21-ELD-04_89600 VSA\release*.exe"

git lfs track "BL-CODE-17.21-ELD-04_89600 VSA\software*.exe"

git add .

git commit -m "Adicionando arquivos grandes com Git LFS"

git remote add origin https://username@bitbucket.org/workspace-id/repo.git

git push origin --all (git push -u origin --all)

Present Error1

Error1.png

git pull

Present Error2

Error2.png

Could you help us. please?

Kind regards,

 

 

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2024

Hi Rogerio,

I'm not familiar with SVN to Git migrations, but I can offer some suggestions for the Git errors you get.

The push error indicates that the master branch in the Bitbucket repo has some commits that are not present in the master branch of your local clone. The suggestion in the error message is to run git pull, which you are doing later based on the second screenshot.

The error message in the second screenshot when you run git pull, indicates there is no tracking information for the current branch (that is, the branch that is checked out locally on your clone). I suggest running first the following command on your clone to see which local branch is checked out:

git status

If the output shows something like this:

On branch master

this means that the local branch master is checked out. You can then adjust the git pull command as follows:

git pull origin master

If your current branch is not master, you can adjust the branch name in the command above, as long as there is also a remote branch in the Bitbucket repo with the same name.

Please feel free to reach out if you have any questions.

Just a heads up, I edited the URLs in your post to protect your privacy. You may also want to remove the images or blur the URLs in the images, as this is a public forum.

Kind regards,
Theodora

Rogerio
Contributor
November 28, 2024

Thank you Theodora, I will try to use your tip.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 29, 2024

You're welcome, Rogerio. 

If you are not familiar with Git, you can check our Git tutorial here whenever you have time:

The official Git Book may also be useful:

Kind regards,
Theodora

Rogerio
Contributor
March 27, 2025

Thank you a lot Theodora.

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 28, 2025

You are very welcome, Rogerio! Is everything set up with your repo now?

Kind regards,
Theodora

Rogerio
Contributor
May 5, 2025

Hi @Theodora Boudale ,

 

I'm  sorry for delay,

Yes, my repo is work from bitbucket. 

Thank you so much,

 

Kind regards,

 

Rogerio

Like Patrik S likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events