Sometimes when working on a project, you might need to rollback to a certain commit. Later on, you want to return to the most recent commit. Here’s how to do it:
In the command line, type git checkout -
Now, your project should be at the most recent commit.