I'm trying to understand git. One thing I keep seeing mentioned is the idea of "partial commits", where instead of staging all changed files and committing once, you stage groups of related changed files separately and make more strategic, smaller-scope commits so that tracing project changes in the commit history is easier. So, the conceptual question I have is this: is the choice of which smaller-scope commit to make first a big deal? Like, if you've chosen to make 3 "partial commits" instead of 1 all-encompassing commit, how important is the decision of the order in which you make those "partial commits"? And why/why not is that order important?
My current understanding, which is likely flawed, is that we can step backwards through the commit history and couldn't "keep" changes from the 1st and 3rd of the mentioned partial commits while discarding those of the 2nd. Hence my question about the importance of the order of commits in a project, especially when dealing with "partial commits." Is the scenario I just described even a realistic/valid one, or am I just making up problems without having experience?
Just trying to understand git more as I read the docs, thank you.