How can I “Censor” the history of a git repository?

I currently have a personal git repository for some software that I have been working on. The repository used to contain personal information of other people in some of the configuration files, which I have in git because they are useful to tracked and help document how the configuration file works. The git repo also shows how the configuration file has changed over time, in terms of which version requires what. I've recently had the desire to publish the project onto github, so I created a branch and removed the personal information from the head, replacing each item with placeholders.

Aside from going back to each revision and "changing history", is there a way for me to "censor" the old information in all occurances (change it all at once) by replacing it with the new information in all occurrences, so if somebody were to roll it back, they would see the placeholders rather than the personal information?


You can run a git filter-branch on it which will modify the history of the branch and remove what you want. Then you could just add an example (placeholder) file in its place. Check out github's remove-sensitive-data help page

Need Your Help

TinyMCE Save button in the File menu

javascript jquery html tinymce wysiwyg

I am using TinyMCE and I am using an inline editor if that matters. This is my code...

angularJS - POST array after JSON.stringify()

php json angularjs

I want to POST 3 parameters to my PHP web service. One of which is an array, so I used JSON.stringify() first and then added it as the parameter. The problem is, PHP isn't receiving the stringify'ed

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.