I'm trying to sync my svn repository to git on a daily basis. After much reading, I was able to make this work by manually creating the following in my .git/config:
[svn-remote "svn"]
url = svn+ssh://svn.myserver.com/project/trunk
fetch = apps/ios/project:refs/remotes/mirror/project
I then created a branch based on this code and pushed it to the git repo with:
git checkout -b mirror/project mirror/project
git svn rebase
git push
I was very happy until I thought I'd really make sure this actually worked by deleting the cloned repo from disk and cloning it again, then trying to push some updates from svn.
git clone git@myrepo.com:myproject
git checkout mirror/project
git svn rebase
This gives me the following error: Unable to determine upstream SVN information from working tree history
I've read the myriad posts on stackoverflow about this message, but I've yet to understand any of the solutions. Is it possible to explain in terms a git newbie could understand why git has chosen to forget all about my svn config?