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 Basics Workflows Git-Flow

Git Checkout - wrote in book at checkout!!

Is there a way to restore or discard changes at checkout. Right now im stuck in detach head mode and when i do a cat to view file, the version had changed. Is there a way to discard those changes ?????

i followed the instructions on screen to discard changes and it worked..but dont know how i got myself in that trouble in the first place..Better install me some Git Flow. :)))

Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   benchmarks.rb

http://git-scm.com/book/en/Git-Basics-Undoing-Things