点符号在git checkout命令中的含义 [英] dot sign's meaning in git checkout command

查看:189
本文介绍了点符号在git checkout命令中的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用这样的git命令:

  git checkout  - 。 

我知道它的效果是在任何地方放弃所有未分档的文件。



任何人都可以告诉我这个命令中点符号(。)的含义是什么?

点代表当前目录。你提到的命令意味着:做一个当前目录的git签出(递归)。双破折号将filespecs中的选项分开(如)。


if I use git command like this:

git checkout -- .

I know its effect is to discard all unstaged files everywhere.

Can anyone tell me what is the meaning of the dot sign (.) in this command?

解决方案

The dot stands for the current directory. The command you've mentioned means: Do a git checkout of the current directory (recursively). The double-dashes separate options from filespecs (like .).

这篇关于点符号在git checkout命令中的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆