I am converting an SVN repository to a git repository using svn2git and Bit Bucket. Svn2git creates full git repositories on disk. I have hundreds of converted repos, so I am wondering if I can do this from the command line rather than from the Bit Bucket GUI.
I am using this snippet from the Bit Bucket REST API to create a new repository in Bit Bucket:
curl -u user:password -X POST -H "Content-Type: application/json" -d '{
"name": "flow-engine",
"scmId": "git",
"forkable": true
}' http://localhost:7990/rest/api/1.0/projects/myproject/repos
This creates a new repository, but really what I want to do is import an existing converted repository.