title: How to preserve user uploaded file in git?
body: <p>I am having a application in openshift in which there is a option by which a user can upload an image. All the images uploaded by users is stored in location "/images/" All the thing is going well.</p>
  
  <p>BUT when I modify/add file in my local Git Repository, </p>
  
  <p>$ git commit -a -m "Modify local repo" 
  $ git push</p>
  
  <p>After pushing, all the file uploaded by user get deleted.</p>
  
  <p>I though it was due to the file uploaded by user is not in the local repository when i commit and push git delete the files for the very same reason.</p>
  
  <p>I tried $ git pull before commit and push but it say Already up-to-date.</p>
  
  <p>How can i preserve the user uploaded files or how to syn it to local repository.</p>
  
  <p>In simple word How can I get the copy of missing file in local repository from remote without cloning if i have only one local repository?? </p>