filter-branch

building a hash lookup table during `git filter-branch` or `git-rebase`

I've been using the SHA1 hashes of my commits as references in documentation, etc. I've realized that if I need to rewrite those commits, I'll need to create a lookup table to correspond the hashes for the original repo with the hashes for the filtered repo. Since these are effectively UUID's, a simple lookup table would do. I think t...

How can I remove a file from git using filter-branch making it so I cannot still git grep the contents?

Hi, I've been trying really hard to remove a file with sensitive data from my git repository using this excellent page (among others): http://help.github.com/removing-sensitive-data/ the primary line being: git filter-branch --index-filter 'git rm --cached \ --ignore-unmatch FileWithSecrets.java' HEAD However even when I follow...

How can I rewrite history so that all files are in a subdirectory?

I have a project under git. One day I moved all project files from current directory to foo/bar/ under the project. I did it using git mv. Then I added some more files and did some changes to already existing files. As a result, now when I look at the history of foo/bar/file.c, I can only see changes that I did after I moved the file. ...