私自身のサーバーでgitをセットアップし、そこに私のプロジェクトをcapistranoでプッシュしようとしています。nameofrepo.gitはgitリポジトリではありません
それはまだ
致命的に言う:「/home/gitolite/repositories/iminrails.gitは」gitリポジトリ こと には表示されませんが、私は、サーバー上のディレクトリのリポジトリにiminrails.gitを見ることができます。 私はサーバー上で私のレポをプッシュする方法を試しましたが、私はまだこのエラーが発生しています。
[email protected]:/var/www/iminrails$ scp -r /tmp/iminrails.git [email protected]:/home/gitolite/repositories/
Enter passphrase for key '/home/ofer/.ssh/id_rsa':
bad command: scp -r -t -- /home/gitolite/repositories/
lost connection
[email protected]:/var/www/iminrails$ git push origin master:refs/heads/master
Enter passphrase for key '/home/ofer/.ssh/id_rsa':
fatal: '/home/gitolite/repositories/iminrails.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
を実行する存在
されています。これはプッシュエラーの前に修正する必要があります。 – JoePasq
'ssh'でサーバにアクセスし、' git init'でリポジトリを作成してこれらの権限があることを確認してください。 –