title: working between local repository branches in git
body: <p>I had an SVN background before and I get used to working between branches alternatively as a charm with it.</p>
  
  <p>however, when I was trying to get myself familiar with GIT, I only found this VC work differently in the above-mentioned aspect.</p>
  
  <p>for example.</p>
  
  <p>in GIT. I initially created a branch called "Master".</p>
  
  <pre><code>master
  ======
  car.rb
  </code></pre>
  
  <p>Then, I branched out into a new branch "new_branch".</p>
  
  <pre><code>new_branch
  ==========
  car.rb
  airplane.rb
  </code></pre>
  
  <p>from this point, I continued working on my recently added class "airplane.rb" so on and so forth. and then added it to the index.</p>
  
  <p>and finally I needed to switch back to work on the master branch again.
  what I only found when I did so was in the branch "master", the newly added file from "new_branch" was still there. so, I got no idea how to work with at that moment.</p>
  
  <p>what do you normally do when it comes to switching between branches very often like my case?</p>
  
  <p>any advice would be very much appreciated!</p>