Git - Checkout

About

A checkout will change the current branch

Specifically, it will checkout the files

In other term, with a checkout, you can

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

Usage

For:

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

Support

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

Do you perform the checkout from the root directory ?


Powered by ComboStrap