dot sign's meaning in git checkout command

前端 未结 2 1812
感动是毒
感动是毒 2021-01-01 00:00

if I use git command like this:

git checkout -- .

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

Can anyone tell m

2条回答
  •  梦毁少年i
    2021-01-01 00:51

    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 .).

提交回复
热议问题