git add

将更改的文件添加到索引(暂存区)。 更多信息:https://git-scm.com/docs/git-add.

git add {{路径/到/文件}}

git add {{[-A|--all]}}

git add .

git add {{[-u|--update]}}

git add {{[-f|--force]}}

git add {{[-p|--patch]}}

git add {{[-p|--patch]}} {{路径/到/文件}}

git add {{[-i|--interactive]}}