title: How to permanently prevent specific part of a file from being committed in git?
body: <p>I have cloned a remote SVN repository with git-svn. I have modified a pom.xml file in this cloned repo in a way that the code compiles. This setup is exclusive for me. Thus I don't want to push the changes back on the remote repo.</p>
  
  <p>Is there a way to prevent this (partial) change of a file from being committed into the repo? I'm aware of the fact, that I could use a personal branch, but this would mean certain merging overhead. Are there other ways?</p>
  
  <p>I've looked into this <a href="https://stackoverflow.com/questions/655243/ignore-modified-but-not-committed-files-in-git">question</a> and this <a href="https://stackoverflow.com/questions/10220063/git-how-to-prevent-committing-files-that-were-modified-just-for-debugging-purpo">one</a>, but they are for rather temporal changes.</p>
  
  <p>Update: I'm also aware of the .gitignore possibilities, but this would mean to exclude the file completely.</p>