git add 增加多个文件

来源:互联网 发布:ubuntu mysql使用 编辑:程序博客网 时间:2024/06/03 05:58

update所有已跟踪的文件

git add -u

添加所有“已跟踪”或“未跟踪”的文件

git add -A

查看git add help 信息:

git add -h-n, --dry-run         dry run-v, --verbose         be verbose-i, --interactive     interactive picking-p, --patch           select hunks interactively-e, --edit            edit current diff and apply-f, --force           allow adding otherwise ignored files-u, --update          update tracked files-N, --intent-to-add   record only the fact that the path will be added later-A, --all             add changes from all tracked and untracked files--ignore-removal      ignore paths removed in the working tree (same as --no-all)--refresh             don't add, only refresh the index--ignore-errors       just skip files which cannot be added because of errors--ignore-missing      check if - even missing - files are ignored in dry run