防止用户停止制作顶级名录的任何更好的途径可能是推动或直接创建档案?
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. ...
防止用户停止制作顶级名录的任何更好的途径可能是推动或直接创建档案?
这一答复补充了。 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 (管理使用储存库的工具)可以推广,以支持这一工具;这两种工具都能够做到基于道路的制约因素,例如,只允许对组合的次权进行改动。
您可尝试client-side hook 。
The
pre-commit
hook is run first, before you even type in a commit message.
It’s used to inspect the snapshot that’s about to be committed, to see if you’ve forgotten something, to make sure tests run, or to examine whatever you need to inspect in the code. Exiting non-zero from this hook aborts the commit, although you can bypass it withgit commit --no-verify
.
See , The example of progress pre-commit hook to see what it is possible in term of eck the index content.
如果你真的想要控制属于总库的那一级,则不要让其他人推向它。 相反,管理人员要从其他用户中抽出,并审查其变化,以确保他们没有违反政策。
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. ...
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 ...
I have a svn repo with various apps as subdirectory of a single svn repo. That worked because I could have checked out a partial, repo. As I cant do that with git obviously I need multiple repos. I ...
I understand how to merge branches together in git, and I love how easy it makes it. I have a branch that looks like this: project/ |--subproj1/ | |---(files) | |--subproj2/ |---(files) A ...
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 ...
I get this on every git svn command I try. I am using git version 1.6.4.2 on OS 10.6 The initial git svn fetch works, and i can do further fetches after that, but they do not enter the log or update ...
Given I have a master branch and a other branch. In the other branch are files I don t want to commit (e.g. log files) so I ignored them in .gitignore. When I switch to the master branch, these ...
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 ...