Wee undo

Report a typo

Put the code below in these steps:

  1. check the status of repo;
  2. reset to the last commit, but keep the state of staging area and working tree;
  3. remove file from the staging area;
  4. make a new commit.
Put the items in the correct order
git reset HEAD LICENSE
git reset --soft @~1
git status
git commit -m "Third commit"

Create a free account to access the full topic