Difference between "checkout revision" and "checkout files" in Git

323 Views Asked by At

I am using Mplab X IDE ver 5.45 user graphical interface for for versioning in Git. When I want to checkout a particular commit the menu gives the option "Checkout revision" or "Checkout files". Could someone please explain which is the difference? (I am not expert in Git).

Moreover: is there any kind of CLI console in Mplab to give git commands and read git messages?

Thanks for the attention.

1

There are 1 best solutions below

0
On

The MPLAB® X Integrated Development Environment (IDE) thread suggests:

  • checkout files restores files at the current revision (equivalent to git restore)
  • checkout revision switches to a given project revision (equivalent to git switch)

However, that same thread mentions (in 2017, so it might have changed):

Probably the single biggest problem I have found so far is that if you use "Check out" in MPLAB it does not currently "flush" and reload the configuration files.

The changes made by Check-out can even hang the IDE.
When winding back to earlier versions this makes it retain bits of newer version configurations such as source file names that don't exist yet.

It seems as if you must close the project and check out with an external git such as git_gui to get configurations to reload properly.
Checking out lesser revisions that don't change configuration will work fine, though.