You will still have to commit this file to actually add its contents to a Git repository.
您必须提交该文件,以向git存储库添加其内容。
Add a file: touch foo.txt; git add foo.txt.
添加文件:touchfoo . txt;git add foo . txt。
If you have to remove a file, there is no special command like git-add; you just remove the file, then commit.
如果要删除某个文件,并且没有git - add之类的特殊命令;您只需要删除这个文件,然后提交就可以了。
Create a file touch incorrect. TXT Accidently add it to the index git add.
如果你已经添加一个文件到索引中,但是未提交。
Create a file touch incorrect. TXT Accidently add it to the index git add.
如果你已经添加一个文件到索引中,但是未提交。
应用推荐