🔀Working Directory
Also known as Working Tree, Working Copy
The project files you see and change right now. Git has not saved them yet.
Think of it like
Think of it like your desk. The papers on it are the ones you are working on right now.
Example
Jack edits index.html and saves it. The change is in his working directory, but Git has not recorded it yet.
Why it matters
What is only here is what you could still lose. So check it before you shut down.
Definition
Example code
console
$ git status --short
?? index.htmlCommon mistake
Key takeaways
- 1What you edit. The files open in your editor.
- 2Not yet history. Changes here are not recorded.
- 3Check with status. git status shows what changed.