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 Introduction to Git Managing Committed Files Undoing File Deletions

Nour El-din El-helw
Nour El-din El-helw
8,241 Points

Discarding Committed Files Changes

Can I discard changes after committing a file?

Nour El-din El-helw
Nour El-din El-helw
8,241 Points

Oh yeah! Sorry, i didn't know that we will do this at the time i posted this question. Thanks a lot!

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Yes, that's what we demonstrate how to do in https://teamtreehouse.com/library/discarding-file-modifications .

Am I perhaps misunderstanding the question? Can you provide more details?