私のチームには3人か5人の人がいて、地元で働いています。
他の人がチェックアウトできるように、ラップトップでgitサーバーを選択することにしました...
私はこのようなことを試しました:
mkdir gitexample
cd gitexample
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@IP_ADDRESS_OF_SERVER:example.git
git push origin master
しかし、私が:まで実行すると
git remote add origin git@192.168.1.15:example.git
git push origin master
私はメッセージを受け取りました:
git@192.168.1.12's password:
fatal: 'example.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
誰かがfedoraにそれをインストールして設定する方法を知っていますか?
192.168.1.15
私のIPアドレスです。
そして私が走るとき:
[root@localhost .ssh]# ssh git@192.168.1.12
git@192.168.1.12's password:
fatal: Interactive git shell is not enabled.
hint: ~/git-shell-commands should exist and have read and execute access.
Connection to 192.168.1.12 closed.
それを機能させるために他に何かありますか?