Point sign value in git checkout command

if I use the git command as follows:

git checkout -- .

I know that its effect is to delete all uninstalled files everywhere.

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

+5
source share
2 answers

The dot indicates the current directory. You mentioned the specified command: do a git checkout of the current directory (recursively). Double dashes highlight individual parameters from file specifications (for example, .).

+11
source

The dot ( .) refers to the current working directory.

git . , master HEAD , myfile.cpp.

+2

All Articles