- index
- staging area
- cache
- add
Add first file
- $ git add README.txt
- $ git status
Add the files to the index (or staging area, or cache).
$ git add README.txt $ git status
examples/out/status_02.txt
# On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: README.txt #