[The image on this page has a really good illustration of the different states a file can be in as seen by Git](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository)