设置本地 git 服务器并添加多个用户

Setting up local git server and adding multiple users

我成功创建了本地 git 存储库并将其克隆到另一个文件夹。

我不能做的是将文件从克隆的文件夹推送到存储库。

而且我希望我的队友使用同一个存储库并拉取和推送代码。

谢谢

首先阅读:Setting-Up-the-Server

您还需要为git设置传输协议
在这里阅读并选择适合您的协议。

The Protocols

Git can use four major protocols to transfer data:

Local, HTTP, Secure Shell (SSH) and Git.
Here we’ll discuss what they are and in what basic circumstances you would want (or not want) to use them.

https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols