# Git - Checkout

checkout:

Checkout updates files in the working directory to match the version in the index.

Checking out a local branch from a remote-tracking branch automatically creates what is called a tracking branch

## 3 - Usage

For:

git checkout -- .
• a specific file
git checkout path/to/file

## 4 - Support

### 4.1 - error: pathspec '.' did not match any file(s) known to git.

Do you perform the checkout from the root directory ?