Note that there are some explanatory texts on larger screens.

plurals
  1. POI want to revert to a backed up copy of my App
    primarykey
    data
    text
    <p>I have researched this topic, but am afraid I have too little experience with Git and may be causing more problems by trying out different things, so I am posting to find out the best way to revert to a previous state of my App.</p> <p>I committed the changes and deleted the previous branches, but not before I backed up the app locally on an external drive.</p> <p>Everything was working fine (function-wise), as evidenced by my deployment to Heroku, which is still working, prior to my most recent changes.</p> <p>I failed to create a branch for the new changes, something I will never do again, and I was working off the master. False confidence...</p> <p>So, since everything went so horribly wrong, I decided to copy over the backed up App and start new... but that didn't work.</p> <p>I think it could be a simple matter of reverting to uncommitted changes on the master, but I am a little frozen with fear that I may make a misstep.</p> <p>Can you help???</p> <p>I am working on rails 3.2, ruby 1.9.3, git 1.7.4.4</p> <p>Update</p> <hr> <p>I have used git reset --hard HEAD and now terminal tells me HEAD is now at 820f417 micro.</p> <p>Problems I'm having are:</p> <p>I don't know how this may or may not change files I have edited inside textmate and saved to the hard drive.</p> <p>When I open the app in the browser, I am getting the error: </p> <pre><code>ActiveRecord::StatementInvalid in StaticPagesController#home Could not find table 'users' </code></pre> <p>Trace: app/helpers/sessions_helper.rb:46:in <code>user_from_remember_token' app/helpers/sessions_helper.rb:16:in</code>current_user' app/helpers/sessions_helper.rb:9:in <code>signed_in?' app/controllers/static_pages_controller.rb:4:in</code>home'</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload