6. Git Reset II


#1

Can't figure out the solution to this problem. I did " $ git reset" and still not understanding what I did wrong. Need help? Thx.


#2

You need to use the first 7 character of the SHA (each commit has a SHA string), so i would first show the commits:

git log

which for example will give:

commit 5d692065cf51a2f50ea8e7b19b5a7ae512f633ba

and then reset to a earlier commit:

git reset 5d692065cf

5d692065cf is just an example, use one from your commit


#4