Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc git中的文件权限_Asp.net Mvc_Git_Visual Studio - Fatal编程技术网

Asp.net mvc git中的文件权限

Asp.net mvc git中的文件权限,asp.net-mvc,git,visual-studio,Asp.net Mvc,Git,Visual Studio,我使用VisualStudio运行git存储库。我使用MVC创建网站。我如何与我的队友共享源代码,但他只能读写视图文件夹而不能读取其他文件?重要的是,他不能复制或更改其他文件。 谢谢根据您使用的Git central repository,您可能有一些选项来设置特定分支的权限,这可能是一种控制权限的方法 但是,在一般的Git术语中,您的团队成员应该只能以只读方式访问您的中央存储库。然后,您可以对请求使用分支或分支方法,只允许您批准的更改返回到主存储库。我使用visualstudio.com服务器

我使用VisualStudio运行git存储库。我使用MVC创建网站。我如何与我的队友共享源代码,但他只能读写视图文件夹而不能读取其他文件?重要的是,他不能复制或更改其他文件。
谢谢

根据您使用的Git central repository,您可能有一些选项来设置特定分支的权限,这可能是一种控制权限的方法


但是,在一般的Git术语中,您的团队成员应该只能以只读方式访问您的中央存储库。然后,您可以对请求使用分支或分支方法,只允许您批准的更改返回到主存储库。

我使用visualstudio.com服务器和visual studio管理我的代码和git。看起来您可以控制分支权限。看见如果您不太熟悉分支的使用,这里有一些很好的信息:。我还喜欢Atlassian Git教程,它是一些关于分支策略等的通用Git示例:。