Git An introduction to Git #19

add - add file or directory to repository

To add a file or directory to a repository, use git add:

$ mkdir test
$ echo 'new file' >test/TESTFILE

$ git add test

$ git status
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	new file:   test/TEST
...
#   modified:    README
#
$ 
Copyright © 2009
http://www.pmichaud.com/2009/pres/