2 ms·
I was intrigued but... What does this even mean? "switching to another branch" is the same thing as "checking out the active commit of that branch" in git. > F
by CGamesPlay 2y ago
I was intrigued but... What does this even mean? "switching to another branch" is the same thing as "checking out the active commit of that branch" in git.
> For example, switching to another branch automatically checks out the active commit of that branch. This is what you want most of the time: you don't switch branch and then don't even look at the code in that branch, do you?
- teo_zero 2y agoYou are right. What gitless does differently is it saves (git stash) the uncommitted files before switching: branches are well isolated, it doesn't let uncommited files be "copied over", if you understand what I mean.