git возвращается к последнему коммитию
# Go to latest commit of a branch
git checkout branchname
# You can also do to switch back to wherever it was before the last checkout.
git checkout -
Jolly Jay