我有一个肮脏的工作树,脏,因为我对源文件进行了更改并修改了一些图像.我试图只将图像添加到索引中,所以我运行了这个命令:
git add *.png
Run Code Online (Sandbox Code Playgroud)
但是,这不会添加文件.添加了一些新的图像文件,但没有添加任何已修改/预先存在的图像文件.
是什么赋予了?
编辑:这是一些相关的终端输出
$ git status
# On branch master
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: src/main/java/net/plugins/analysis/FormMatcher.java
# modified: src/main/resources/icons/doctor_edit_male.png
# modified: src/main/resources/icons/doctor_female.png
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# src/main/resources/icons/arrow_up.png
# src/main/resources/icons/bullet_arrow_down.png
# src/main/resources/icons/bullet_arrow_up.png
no …Run Code Online (Sandbox Code Playgroud) git ×1