Short status
Let’s try to see all the possible states of a file.
- Create a new file.
- Create a new file and add it to the staging area.
- Change a file.
- Change a file and add it to the taging area.
- Change a file and add it to the taging area and then change it again.
- Remove a file from the filesystem.
- Run git rm on a file.
Check the status
git status
Check the short status.
git status -s
The run git reset HEAD . and git checkout . and remove the two new files.