Fogmeister
Fogmeister

Reputation: 77631

How do you specify multiple paths in Git command?

On this site it explains how to use the command...

git checkout <branch_name> -- <paths>

But the paths is plural.

Does this mean we can specify several paths in one command?

If so, what is the syntax for this?

Upvotes: 0

Views: 160

Answers (1)

Alex Howansky
Alex Howansky

Reputation: 53563

Does this mean we can specify several paths in one command?

Yep, just separate them by spaces:

git checkout -- path/to/file some/other/file even/more/files

Upvotes: 3

Related Questions