Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git brach name after SVN-Git convertion

A-E-M-Wiz June 19, 2019

Hi,

 

I have been following the guide on SVN to Git conversion:

https://www.atlassian.com/git/tutorials/migrating-convert

 

What is the expected branch name in Git after the conversion and Clean-Up?

Mine is called "master" and "origin/trunk".

gitname.png

 

I would expect it to be called "origin/master"?

 

Thanks

1 answer

0 votes
A-E-M-Wiz June 24, 2019

When I then continue on the SVN conversion guide, I call "git svn fetch" to fetch the latast commits. This is also working, and then I call: "java -Dfile.encoding=utf-8 -jar C:\Users\ext1126\Downloads\svn-migration-scripts.jar sync-rebase"

However, I then receive an error:

fatal: ambiguous argument 'remotes/trunk': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error finding tracking ref for branch master

 

I assume this is because the script expect the branch name to be origin/master? If so, what did I miss in the conversion process since mine is still called trunk in git?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events