English 中文(简体)
Git top top
原标题:Git hook to disallow directory creation in top level

防止用户停止制作顶级名录的任何更好的途径可能是推动或直接创建档案?

问题回答

这一答复补充了。 VonC 回答


由于每个开发商都应当有自己的衣物(其自己的工作存放处),你可以现实地强制实行<>1<>1>>update或pre-receive http://git-scm.com/docs/githooks”rel=“nofollow noreferer” 职称=“githooks(5) Manual” Hooks used by git”>hook

1>pre-commit h 可绕过“承诺——不适用”

我不知道你是否打算施加任何现成的解决办法支持限制,但我认为,这两者都是:date-paraid hook(从contrib/hooks in git sources), and gitolite (管理使用储存库的工具)可以推广,以支持这一工具;这两种工具都能够做到基于道路的制约因素,例如,只允许对组合的次权进行改动。

如果你真的想要控制属于总库的那一级,则不要让其他人推向它。 相反,管理人员要从其他用户中抽出,并审查其变化,以确保他们没有违反政策。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签