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
git pull
Present Error2
Could you help us. please?
Kind regards,
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome, Rogerio! Is everything set up with your repo now?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Theodora Boudale ,
I'm sorry for delay,
Yes, my repo is work from bitbucket.
Thank you so much,
Kind regards,
Rogerio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.