... $ git checkout HEAD^ -- test.txt 也可以 $ git add -A 将工作区的所有改动及新增文件添加到暂存区 $ git mv oldname newname 完成改名操作 ...
基于1个网页-相关网页
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之类的特殊命令;您只需要删除这个文件,然后提交就可以了。
应用推荐