Git推送服务器?
问题描述:
我曾尝试下面的命令失败:Git推送服务器?
git push 12.12.12.123:/proj.git master
它要求我的密码,但是每次都拒绝。
我用下面的命令来设置的Git:
git --bare update-server-info
chmod a+x hooks/post-update
的最后一个命令给我这个错误:
chmod: Cannot access 'hooks/post-update':No such file or directory
我读the tutorial。
[编辑]
我试图推后收到以下错误信息:
bash: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly
答
你需要做的git的init在回购
http://www.kernel.org/pub/software/scm/git/docs/git-init.html
这里很好,快速tuturial: http://toolmantim.com/articles/setting_up_a_new_remote_git_repository
这是多一点的时间,一旦
总之成立的git:
$ ssh myserver.com
Welcome to myserver.com!
$ mkdir /var/git/myapp.git && cd /var/git/myapp.git
$ git --bare init
Initialized empty Git repository in /var/git/myapp.git
$ exit
Bye!
,你需要SSH://12.12.12.123:/proj.git主
谢谢!主要的问题终于在我的SSH密钥对中。 – 2009-03-13 13:57:21