11. see what’s changed
$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# README
nothing added to commit but untracked files present (use "git add" to
track)
12. adding files
Adding a individual file
$ git add README
Adding a multiple files
$ git add .
13. see what’s changed (again)
$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: README
#
14. save (commit) your changes
$ git commit -m 'Added README file'
Created initial commit c1195b5: Added README file
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README
15. check your history
$ git log
commit c1195b51d6e99dcc6e88b6ae44eea20ba1f0868e
Author: Erin Carter <me@erincarter.com>
Date: Thu Oct 29 12:21:24 2009 -0500
Added README file
41. what to remember
‣ commit often
‣ pull often
‣ use checkout and reset with caution
‣ create your own repository anywhere
http://hoth.entp.com/output/git_for_designers.html