sync-rebase error when running svn-migration-scripts.jar

I've been following Atlassian's Migrating to Git guide step-by-step to create a local git repo on a Mac. The preparation and conversion stages were successful. However, when I get to the synchronisation stage an error is reported when I run the command to synchronise with the fetched commits:

java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar sync-rebase

 

The error reported is:

 

1
2
3
4
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'm aware that the question has already been asked here but I've not been able to resolve the error from the answers provided.

1 answer

This widget could not be displayed.

When you first clone, use the prefix switch as shown:

 

git svn clone --prefix=''

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,193 views 8 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you