Git - Checkout

1 - About

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 ?

code/version/git/checkout.txt ยท Last modified: 2018/06/11 14:45 by gerardnico