I am migrating my SVN repository to Git (BitBucket) using this tutorial. But I have not used standard SVN layout so it seems to be little problematic.
My SVN repo is simple copy of Android project.
/svn/dirname/project/app
There is no trunk
, branches
and tags
subfolders. You can say that project
equals to the trunk.
git svn clone --trunk=/project --authors-file=authors.txt https://host/svn/dirname project
Initialised empty Git repository in /home/osboxes/GitMigration/project/.git/
Checked out HEAD:
https://host/svn/dirname/project r300
Next step shall have been clean up but it failed. Maybe because I do not have any branches:
java -jar ~/svn-migration-scripts.jar clean-git
Could not retrieve the config for the key: svn-remote.svn.branches
But then it failed and I do not know how to continue
java -jar ~/svn-migration-scripts.jar sync-rebase
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