git: what’s the difference between the index, the staging area, the working tree / area,

Your working area (aka workspace or working tree) are the files you’re currently working on.

The index (aka the staging area) is the list of files that you are about to commit to your local repo.

In a nutshell, your workflow is:

Your Working area -> Index -> your local repo

This is very handy:

Leave a Reply

Your email address will not be published. Required fields are marked *