Staging Area
http://git-scm.com/about/staging-area
Slide 60
Slide 60 text
示範
git init
Slide 61
Slide 61 text
示範
git init
Slide 62
Slide 62 text
touch README.txt
示範
Slide 63
Slide 63 text
示範
git status
Slide 64
Slide 64 text
示範
On branch master
Initial commit
Untracked files:
(use "git add ..." to include in
what will be committed)
README.txt
nothing added to commit but untracked files present
(use "git add" to track)
Slide 65
Slide 65 text
add – 將檔案加入 Staging
git add
[files]
Slide 66
Slide 66 text
add – 將所有檔案加入 Staging
git add .
Slide 67
Slide 67 text
示範
git add README.txt
Slide 68
Slide 68 text
示範
git status
Slide 69
Slide 69 text
示範
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached ..." to unstage)
new file: README.txt