I like to apply some changes to my project that help with my eccentric workflow (e.g. I make some project structure changes, delete some excessive logging lines, etc), but I don't want the changes showing up in my git history when I create a branch for merging. The effort to manually rewrite history is too much for the number of times I have to do this.
Is there a way to apply a diff file (e.g. produced from format-diff
) such that the files are edited on disk but the history and index do not notice the differences?
The only hack I can think up is to apply non-git .diff
files with patch
and add the files to git update-index --assume-unchanged foo/bar
but is there a better - more "git" - way?