Git add 时间:2019-04-01 23:02:46 git add¶ git add 把文件变更的文件从工作区移动到缓存区。 常用操作¶ 添加所有文件到缓存区。 shell git add . 添加指定文件到缓存区。 shell git add <file>... 添加指定目录下变更的文件到缓存区。 shell git add [dir]...