使用 MobileMe idisk 作为 git 存储库
我正在尝试使用 git 和 MobileMe 作为我在多台计算机上工作的个人项目的版本控制系统。到目前为止我已经做了以下事情。
在我的本地计算机上创建并清空裸存储库,
$ mkdir myproject.git
$ cd myproject.git
$ git init --bare
$ git update-server-info
然后将 myproject.git
目录复制到 mobile me 磁盘,并将我的计算机与 mobile me 同步。
然后,我切换到我的项目在本地计算机上的目录,设置远程源并尝试将本地存储库推送到移动我,
$ cd myproject
$ git remote add origin https://<username>@idisk.me.com/<username>/myproject.git/
$ git push --all
然后我被要求输入密码两次。第一次是手机密码,其他密码都会出错。输入第二个密码后,相信我,我已经尝试了一切,终端只是挂起。那么我做错了什么? (除了尝试使用 mobileme 作为 git 存储库)
谢谢,Ben。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
忘记我之前尝试过的,如果你想使用 MobileMe iDisk 来存储裸存储库,这是完全可能的。
关键是您需要进入 MobileMe 首选项,并在 iDisk 选项卡下,确保 iDisk Sync 已打开,如果未打开,请启动它。这将创建 iDisk 的本地副本,可在 Volumes 目录下访问该副本。
然后以与在任何其他远程卷上相同的方式创建一个裸存储库
您可以将其添加为远程卷后,像任何其他存储库一样推/拉到此
存储库 要克隆存储库,只需
注意:需要先与 mobile me 同步,然后更改才会在您使用 mobile me 的其他计算机上生效...
-Ben
Forget what I tried before, if you want to use your MobileMe iDisk to store a bare repository, it is entirely possible.
The key is that you need to go into your MobileMe preferences, and under the iDisk tab, make sure that iDisk Sync is on, if it's not, start it. This creates a local copy of your iDisk that is accessible under the Volumes directory.
Then create a bare repository the same way you would on any other remote volume
You can then push/pull to this just as you would any other repository after you have added it as a remote
To clone the repository, simply
It should be noted that you need to sync with mobile me before changes will take effect on other computers you are using mobile me with...
-Ben
我不确定您是否可以通过 https 进行推送,除非 mobile me 以某种方式激活了 git-http-backend cgi 脚本,以便更好地提供正确的包文件。
(来源:progit.org)
(参见ProGit 图书“智能http" 部分)
GitHub 自 2010 年 4 月起支持该协议,但我还不知道是否有其他主机提供该服务。
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.
(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.