查看命令帮助

git help

打开git-add Manual Page:git help <command>

git help add

命令详解:

git add -A | --all | --no-ignore-removal

stages all:add, modify and remove


git add . | --no-all | --ignore-removal

stages new and modified, without deleted:add & modify , ignore remove


git add -u | --update

stages modified and deleted, without new:remove & modify, ignore add