git help add -A, --all Like -u, but match <filepattern> against files in the working tree in addition to the index. That means that it will find new files as well as staging modified content and removing files that are no longer in the wo…
一.前言git add命令主要用于把我们要提交的文件的信息添加到索引库中.当我们使用git commit时,git将依据索引库中的内容来进行文件的提交. 二.基本git add <path>表示 add to index only files created or modified and not those deleted 我通常是通过git add <path>的形式把我们<path>添加到索引库中,<path>可以是文件也可以是目录.git不仅能判断出…
git add -A stages All git add . stages new and modified, without deleted git add -u stages modified and deleted, without new git init echo Change me > change-me echo Delete me > delete-me git add change-me delete-me git commit -m initial echo OK…