title: Pushed to Git, everything disappeared?
body: <p>So I'm new to working in Ruby on Rails. I committed everything and pushed it up to git, then my project reverted back to an old version. My most recent version is safely stored on git, but now all the original files on my computer are gone and replaced by older versions of them. What's going on?</p>
  
  <p>EDIT: more details:</p>
  
  <pre><code>git status
  # On branch master
  # Changes not staged for commit:
  #   (use "git add &lt;file&gt;..." to update what will be committed)
  #   (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
  #
  #   modified:   .DS_Store
  #   modified:   app/.DS_Store
  #   modified:   app/assets/stylesheets/static_pages.css.scss
  #   modified:   app/views/static_pages/home.html.erb
  #
  # Untracked files:
  #   (use "git add &lt;file&gt;..." to include in what will be committed)
  #
  #   app/assets/.DS_Store
  #   app/assets/images/.DS_Store
  #   public/chat.png
  #   public/groups.png
  #   public/join-free.png
  #   public/login-button.png
  #   public/meetups.png
  #   public/people.png
  #   public/posts.png
  #   public/profile.png
  #   public/stream.png
  #   public/streambaby.png
  #   public/streamblue.png
  #   public/streamlime.png
  no changes added to commit (use "git add" and/or "git commit -a")
  Lasers-MacBook-Pro:meetumea lasernite$ git add .
  Lasers-MacBook-Pro:meetumea lasernite$ git commit -m "home page basic"
  [master 49921d4] home page basic
   Committer: Laser Nite &lt;lasernite@Lasers-MacBook-Pro.local&gt;
  Your name and email address were configured automatically based
  on your username and hostname. Please check that they are accurate.
  You can suppress this message by setting them explicitly:
  
      git config --global user.name "Your Name"
      git config --global user.email you@example.com
  
  After doing this, you may fix the identity used for this commit with:
  
      git commit --amend --reset-author
  
   18 files changed, 144 insertions(+), 9 deletions(-)
   create mode 100644 app/assets/.DS_Store
   create mode 100644 app/assets/images/.DS_Store
   rewrite app/assets/stylesheets/static_pages.css.scss (100%)
   rewrite app/views/static_pages/home.html.erb (100%)
   create mode 100644 public/chat.png
   create mode 100644 public/groups.png
   create mode 100644 public/join-free.png
   create mode 100644 public/login-button.png
   create mode 100644 public/meetups.png
   create mode 100644 public/people.png
   create mode 100644 public/posts.png
   create mode 100644 public/profile.png
   create mode 100644 public/stream.png
   create mode 100644 public/streambaby.png
   create mode 100644 public/streamblue.png
   create mode 100644 public/streamlime.png
  Lasers-MacBook-Pro:meetumea lasernite$ git branch
  * master
    work
  Lasers-MacBook-Pro:meetumea lasernite$ git push
  Counting objects: 39, done.
  Delta compression using up to 8 threads.
  Compressing objects: 100% (27/27), done.
  Writing objects: 100% (27/27), 60.94 KiB, done.
  Total 27 (delta 11), reused 0 (delta 0)
  To git@github.com:lasernite/meetumea.git
     a78c8f0..49921d4  master -&gt; master
  Lasers-MacBook-Pro:meetumea lasernite$ git status
  # On branch master
  nothing to commit (working directory clean)
  Lasers-MacBook-Pro:meetumea lasernite$ git co work
  Switched to branch 'work'
  Lasers-MacBook-Pro:meetumea lasernite$ git status
  # On branch work
  nothing to commit (working directory clean)
  </code></pre>
  
  <p>I then noticed that all my files were old versions and all my new images were gone from the public folder. I just ran rm -rf meetumea and then cloned my project from github, so the problem is solved. I'd still like to know what happened, though.</p>