title: git: change one line in file for the complete history
body: <p>When I started my git repo I commited a few files as initial commit to it. Now, many commits later, I noticed that I included in those files a line with information which I do not want to publish (unlike the rest of the code). So I want to <strong>remove/change this one line</strong> and <strong>keep the rest</strong> of the code.</p>
  
  <p>Searching around I found this solution: Insert an empty commit as initial commit (described here: <a href="https://stackoverflow.com/questions/645450/git-how-to-insert-a-commit-as-the-first-shifting-all-the-others">Insert a commit before the root commit in Git?</a>), do a rebase on it and then edit the old first commit via amend. Unfortunately, many cruel merge conflicts arise during rebase (as described here: <a href="https://stackoverflow.com/questions/7194023/git-solving-conflicts-caused-by-rebase/7194301#7194301">git: solving conflicts caused by rebase</a>).</p>
  
  <p>Is there a different way to solve my problem or do have to rebase and edit all conflicts by hand?</p>
  
  <p>Thanks in advance :)</p>