1

If you realize that you saved some sensitive data (user:pass, an access token etc) in some version of the git repositiory, what can you do to get rid of it, without sacrificing the whole repository?. Is it possible to scrap that current revision only. Will git figure out the gaps automatically?

4

1 回答 1

3

GitHub 上有一篇关于它的好文章:

https://help.github.com/articles/remove-sensitive-data

本质上,您用于git filter-branch重写项目的历史记录,删除包含敏感内容的文件。

于 2012-12-16T08:58:39.027 回答