简体   繁体   English

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

[英]Setting up local git server and adding multiple users

I am successful in creating a local git repository and cloning it to another folder. 我成功创建了本地git存储库并将其克隆到另一个文件夹。

What I am not able to do is pushing files from the cloned folder to the repository. 我无法做的是将文件从克隆的文件夹推送到存储库。

And I want my team mates to use the same repository and pull & push the codes. 我希望我的队友使用相同的存储库并拉出和推送代码。

Thank you 谢谢

First of all read this: Setting-Up-the-Server . 首先,请阅读以下内容: 设置服务器

You will also need to set up transfer protocols for git. 您还需要为git设置传输协议
Read about it here and choose the right protocol for you. 在此处阅读有关内容,并为您选择正确的协议。

The Protocols 协议

Git can use four major protocols to transfer data: Git可以使用四种主要协议来传输数据:

Local, HTTP , Secure Shell ( SSH ) and Git . 本地, HTTP ,安全Shell( SSH )和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 https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM