Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

ammarkhan
Front End Web Development Techdegree Student 21,661 PointsLast practice revert, it ask to commit or stash
While practising it says following
"git revert 60adb
error: Your local changes would be overwritten by revert.
hint: Commit your changes or stash them to proceed.
fatal: revert failed "
I do not know what stash means and why should I commit, won't commit, commit that changes which we want to revert?
1 Answer

Jay McGavren
Treehouse TeacherThis message means that one or more of the files in your working directory have been modified since the last commit, probably using a text editor. The revert command is meant for undoing changes in a commit, not for discarding changes to modified files.
If you run the git status command, it will include a hint on how to undo the changes to your modified files.
You can also read about git stash here: https://git-scm.com/book/en/v1/Git-Tools-Stashing