Welcome to the Treehouse Community
Looking to learn something new?
Dan Williams5,339 Points
Git Basics Getting Started With Git An Old-Fashioned Git-Together stuck on code challenge
I'm following the Git Basics Getting Started With Git deep dive.
I'm stuck on the the 9th challenge which is named
HEAD~1 is a special commit identifier in git; it stands for the previous commit (not the one we just made, but the one before that). Can you use that identifier to check out the previous commit in this repository?
Any guides or help where to start with this, kind stuck....
git checkout HEAD~1
Mário Ribeiro10,439 Points
I'm having problems with the ~ symbol. I'm unable to use it.. already tried copy / paste without success. Restarted the challenge over 20 times :)
Iván Murillo11,912 Points
Hey Mário! I'm having problems too with the ~ symbol. How did you solved it?
EDIT: The ~ symbol doesn't work in the treehouse's console if you are using a non-american keyboard. Solved with a copy and paste!
Dave Huish17,727 Points
The confusion for me was the words "check out". I thought initially I had to look add the log. Instead, it is literally asking you to access the files using Git's checkout.
git checkout HEAD~1 is what I ended up with.
I was making it far too complicated for myself.