3 ms·
> 2) Destroy all local modifications, if foo is a file. Not exactly. It updates the file to the state from the index. git-checkout is just poorly overloaded.
by rue 16y ago
> 2) Destroy all local modifications, if foo is a file.
Not exactly. It updates the file to the state from the index.
git-checkout is just poorly overloaded. The idea is the same in both operations (updating some set of files in the working directory to some state from this or some other branch) but the two should be separated.
- arantius 16y ago> Not exactly. It updates the file to the state from the index. Whoops, you got me. I of course meant "in the working tree" when I said local. It's just easy to be close, but not quite, right with the terminology.