Setting a password for Git cloning?

老子叫甜甜 提交于 2019-12-23 15:58:27

问题


I want to put a password to my repository so that the password is asked, when cloning from my repository.


回答1:


To restrict access to repository cloning, you need to use the ssh://... protocol, and provide ssh access to only those users you want to have access.

What you probably should do is look up the various "git workflow" questions and answers - they describe the means by which various team members pull/push from/to each other. There are many ways to do this.




回答2:


I recomend gitosis to manage private repositories.

Here you have a nice Tutorial



来源:https://stackoverflow.com/questions/552121/setting-a-password-for-git-cloning

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!