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.
When you first clone, use the prefix switch as shown:
git svn clone --prefix=''
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.