我尝试了以下命令,但没有成功:
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我在读本教程。
编辑
在尝试推送后,我会得到以下错误消息:
bash: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly发布于 2009-02-16 10:46:32
你需要在你的回购中做好准备
http://www.kernel.org/pub/software/scm/git/docs/git-init.html
这里有一个漂亮而快捷的教程:存储库
这是再长一次
简而言之,建立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主
发布于 2009-02-16 10:58:43
您还可能需要将用户名添加到git命令中,例如masi@1.2.3.4:/proj.git。我想这就是你收到密码错误的原因。
我不认为这是必要的。
https://stackoverflow.com/questions/552880
复制相似问题