3 ms·
It's just git's UI is based on operations on the underlying storage instead of workflow intent. From that perspective branch switching and reverting a file are
by codesnik 4y ago
It's just git's UI is based on operations on the underlying storage instead of workflow intent. From that perspective branch switching and reverting a file are actually similar operations.
For many cases this would be a wrong approach. But git's storage model is quite simple and elegant, and both gives unlimited freedom in adapting it to your needs and could be dangerous if you don't understand it.
When coaching junior devs on git usage I always start with merkle trees, not with a list of commands to remember. This detour takes 20 minutes, but actually gives intuition to fix even worst mistakes without my help when they happen. I can't imagine the same with any other VCS.
- guytv 4y agoyet one often has to google a command, to make sure what is the correct command, even if they know all about the mechanics of the underlying blob storage.