title: How does Xcode work with Git for changing branch and checkout older commit?
body: <p>Since Xcode at version 4.4.1 doesn't have a switch branch or checkout older version function, is it possible to do that in bash </p>
  
  <pre><code>git checkout in-app-purchase-to-be-added
  </code></pre>
  
  <p>or </p>
  
  <pre><code>git checkout HEAD^2
  </code></pre>
  
  <p>because all the source code (<code>.m</code>, <code>.h</code>), <code>.xib</code>, and project files, image resources will all change in a blink of an eye, so won't it cause weird behavior in Xcode?  Right now I always quit Xcode, switch branch, and restart Xcode, but maybe there is a faster way.</p>