TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Safe-commit-hook: prevent developers from checking in sensitive files

42 点作者 jenandre超过 9 年前

3 条评论

deanclatworthy超过 9 年前
Still requires manual effort. We have 100s of repositories at work, and if we were lucky enough to have 100s of developers - they&#x27;d all have to do this manually every time.<p>I&#x27;ve often wondered whether it would be worthwhile for git to include some global configuration to allow global pre&#x2F;post commit hooks which are opt-out on a per repository basis. If I could do this for every repository our developers created automatically - I would.
评论 #10313108 未加载
评论 #10313936 未加载
emmab超过 9 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;jandre&#x2F;safe-commit-hook&#x2F;blob&#x2F;master&#x2F;git-deny-patterns.json#L222" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jandre&#x2F;safe-commit-hook&#x2F;blob&#x2F;master&#x2F;git-d...</a><p>&gt; schema.rb<p>Don&#x27;t you kind of need this in a rails project?
评论 #10316353 未加载
caio1982超过 9 年前
Why would you simply rely on extensions instead of, say, also the file&#x27;s magic numbers?