Checkout One File

  • Comments posted to this topic are about the item Checkout One File

  • Just a note, in the Pro Git book there's a side note on using git checkout -- <file> that says:

    It’s important to understand that git checkout -- <file> is a dangerous command.

    Any local changes you made to that file are gone — Git just replaced that file with

    the most recently-committed version. Don’t ever use this command unless you

    absolutely know that you don’t want those unsaved local changes.

    Rod

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply