title: How to use git to sync code without committing?
body: <p>I use egit in Eclipse to sync my code between two locations using a repository on bitbucket.</p>
  
  <p>I want to be able to work on the code from either location. What I usually do is commit the changes at the end of the day.</p>
  
  <p>Is there another way I should be doing this, as I end up with a lot of commits for code that I'm still working on that is still broken?</p>
  
  <p>I thought the idea was that you are meant to only commit when the code is working. What is best practice so I can update the code in the repository without committing, and only commit when the code is working?</p>