title: how to deal with local/dev only code using git
body: <p>if i have some local debug code or a development web services ip in my sources that i want to keep medium to long term locally, but don't want it in my git repo, what is the best way to accomplish this?</p>
  
  <p>for now i just leave it alone, commit partial files carefully avoiding those lines, and do a series of</p>
  
  <pre><code>git stash
  git pull --rebase
  git stash pop
  </code></pre>
  
  <p>when there are diverging changes etc...</p>
  
  <p>assuming that i cannot or do not want to change the structure of the code to pull these lines out into a file that can be included and/or ignored, how do you deal with this type of situation?</p>
  
  <p><a href="https://stackoverflow.com/questions/8262249/managing-local-only-changes-with-git">local Makefile changes</a> are discussed here, which seems like the basic idea i want but most of the suggestions are for how to work around it, not really resolve it in a very satisfactory way.</p>
  
  <p>i guess what i am looking for is something like .gitignore for a changeset.</p>