4 ms·
Can pull screw up your working directory if you haven't committed something? I thought that was reserved for `reset --hard`. In any case, I always teach people
by globular-toast 3y ago
Can pull screw up your working directory if you haven't committed something? I thought that was reserved for `reset --hard`.
In any case, I always teach people to commit more. As long as you commit, you can't lose anything.
- seba_dos1 3y agoMost confusion I've ever seen from beginners comes from them trying to pull, ending up in a conflict and not realizing, not resolving it but not aborting either and just continuing their work and then getting confused when trying to do anything else.
- globular-toast 3y agoThat's true. I think the worst thing about git CLI is it hides the state and forces you to issue another command to query the state, but you could easily forget. A lot of people add the thing to the PS1 to show some state, but it's not default. However, I'm still not sure git will actually fuck things up with a pull. I think that's the users later when they go nuclear and delete the repo.