命令“git checkout”的含义。 [英] meaning of the command "git checkout ."
问题描述
git checkout with
< ;路径>
[...]用于从索引中恢复修改的或
删除的路径到它们的原始内容,或者用命名的内容替换
路径a
commit-ish)。
请参阅 documentation ,特别是此处和此处:。
在您的案例中被当作< pathspec>
来处理当前目录。当前 HEAD
修订了给定< pathspec>
中的所有文件,因此在您的情况下,基本目录中的所有内容,已经签出。
While I understand that the command in the title is akin to undo the changes to the current repository, I am unable to understand how it actually works or how to read the command. Any leads would be a great help.
git checkout with
<paths>
[...] is used to restore modified or deleted paths to their original contents from the index or replace paths with the contents from a named (most often a commit-ish).
See documentation, especially here and here: .
is treated as <pathspec>
in your case, adressing the current directory. The current HEAD
revision of all files in the given <pathspec>
, so in your case everything in your base directory, are checked out.
这篇关于命令“git checkout”的含义。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!