Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Git Pull Older Version

How do I pull an older commit so I can redo a section? Tried to fix my errors and it was only getting worse so would like to start over...thanks

4 Answers

Bryan Tunney, if that's what you'd really like to do,

git reset --hard 4a155e5b3b4548f5f8139b5210b9bb477fa549de

Where that last ugly string of code is the hash of your commit (that you need to replace with your own).


Back to the same error when I try to migrate my database.

new-host-8:treebook drewtunney$ rake db:migrate == DeviseCreateUsers: migrating ============================================== -- create_table(:users) rake aborted! An error has occurred, this and all later migrations canceled:

SQLite3::SQLException: table "users" already exists: CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "profile_name" varchar(255), "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) /usr/local/rvm/gems/ruby-1.9.3-p392/gems/sqlite3-1.3.7/lib/sqlite3/database.rb:91:in `initialize'

Any guidance would be greatly appreciated.


Jason Seifer, any insight into Bryan Tunney's error?

Jason Seifer,

Please help

Jason Seifer, any help would be greatly appreciated!