Search code examples
gitmobileme

Using MobileMe idisk as a git repository


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.


Solution

  • 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
    (source: progit.org)

    (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.