我的团队有 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.
还有什么可以让它工作的吗?