You will still have to commit this file to actually add its contents to a Git repository.
您必须提交该文件,以向git存储库添加其内容。
If you had added multiple files, you could continue listing them after the git-add command on a single line, as you need not add them one at a time.
如果您添加了多个文件,可以在同一行中的git - add命令后面列出这些文件,不过您也不必一次将它们全部添加到仓库中去。
If you have to remove a file, there is no special command like git-add; you just remove the file, then commit.
如果要删除某个文件,并且没有git - add之类的特殊命令;您只需要删除这个文件,然后提交就可以了。
Add a file: touch foo.txt; git add foo.txt.
添加文件:touchfoo . txt;git add foo . txt。
Add a file: touch foo.txt; git add foo.txt.
添加文件:touchfoo . txt;git add foo . txt。
应用推荐