title: Git remote server repository file storage
body: <p>I will be working on a number of iPhone/iPad apps soon and am looking at using Git as my version control system. In past projects (but not iOS based) I have used SVN. My main decision for switching to Git is the de-centralised structure.</p>
  
  <p>I will be using a remote server as a central Git repository (most likely Atlassian's bitbucket). I haven't set this up yet, but in the meantime I have been testing Git locally.</p>
  
  <p>I've read through a number of beginner resources and now have a fairly good grasp of the basics but there is one thing I need to confirm I understand properly.</p>
  
  <p><em>In my example below I am using a local version of Git on my Mac.</em></p>
  
  <p>I have created a local git repository called <strong>git_test</strong>. In this repository I have two dummy files called <strong>file1</strong> and <strong>file2</strong>. I understand that this is my working directory which contains my actual files (and not blobs).</p>
  
  <p>I also understand that the central repository on a remote server should be bare and not contain the actual files of the working directory.</p>
  
  <p>Let's assume that I have two users (User A and User B) with identical local repositories.</p>
  
  <p><strong>User A</strong></p>
  
  <ul>
  <li>Modifies <strong>file1</strong></li>
  <li>Commits <strong>file1</strong></li>
  <li>Executes a push to the remote repository</li>
  </ul>
  
  <p><strong>User B</strong></p>
  
  <ul>
  <li>Modifies <strong>file2</strong></li>
  <li>Commits <strong>file2</strong></li>
  <li>Executes a push to the remote repository</li>
  </ul>
  
  <p>Am I correct in saying that the new blobs are uploaded into the <strong>.git/objects</strong> directory in the remote repository?</p>
  
  <p>Then, when User A and User B execute a pull command on their local systems the actual file and not the blob is updated with the contents of the new blob. Is this correct?</p>
  
  <p>Sorry for the long-winded question. I just hope everything makes sense.</p>