... git status //查看工作目录下文件状态。 git add file //将文件或者路径添加到暂存区。 git reset HEAD file //将文件撤出暂存区。 ...
基于1个网页-相关网页
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.
添加文件:touch foo . 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之类的特殊命令;您只需要删除这个文件,然后提交就可以了。
应用推荐