tags:

views:

255

answers:

1

I am trying to use git and MobileMe as a version control system for a personal project I am working across several computers. So far i have done the following.

Created and empty bare repository on my local computer

$ mkdir myproject.git
$ cd myproject.git
$ git init --bare 
$ git update-server-info

I then copied the myproject.git directory to the mobile me disk, and sync my computer with mobile me.

I then switched to the directory where my project was on my local machine, set the remote origin and try to push the local repository to mobile me

$ cd myproject
$ git remote add origin https://<username>@idisk.me.com/<username>/myproject.git/
$ git push --all

Im am then asked for my password twice. The first time is the mobile me password, any other password gets an error. After entering the second password, and believe me i've tried everything, terminal just hangs. So what am I doing wrong? (Besides trying to use mobileme as a git repository)

Thanks, Ben.

A: 

I am not sure you can push through https, unless mobile me has somehow activated the git-http-backend cgi script, in order to better serve the right packfile.

alt text

(See ProGit Book "smart http" section)

GitHub supports that protocol since April 2010, but I don't know about any other host providing that service yet.

VonC
So it's not possible?
Ben
@Ben: I have not directly tested that, but I doubt very much that you can push to mobileme through https. Again, aside GitHub, I don't know of other providers supporting that protocol for **write** operations. Mobileme seems an unlikely candidate for that kind of feature... which doesn't exactly fit their core activity. In short, in my opinion, "yes, it is not possible".
VonC