chenzhihao-mac:gitlearning chenzhihao$ cat readme.md Hello world! Git is a very important Code Management System!
修改该文件,添加一个单词very
1 2 3 4
chenzhihao-mac:gitlearning chenzhihao$ vi readme.md chenzhihao-mac:gitlearning chenzhihao$ cat readme.md Hello world! Git is a very very important Code Management System!
将修改提交到暂存区
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
chenzhihao-mac:gitlearning chenzhihao$ git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: readme.md no changes added to commit (use "git add" and/or "git commit -a") chenzhihao-mac:gitlearning chenzhihao$ git add readme.md chenzhihao-mac:gitlearning chenzhihao$ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: readme.md