What should we be careful about with Git checkout?

Checkout command can behave differently depending what we want to achieve. Most common way - you will be switching to new branch with it, in doing so your basically replacing your local files with their version from repo. But in context of reversing changes - you can do it (you can specify files you want to adjust).
Probably this will be useful in context to this question link

1 Like