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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Git brach name after SVN-Git convertion



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


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

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



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



1 answer

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
Community showcase
Published in DevOps

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

105 views 1 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you