Let's say I have a git repo and inside there are various sub projects. How can one revert back changes in one sub project without affecting all the other sub projects to the state they were in of the commit you want to revert to? So for one sub project I revert back to older commit, while the rest of the sub projects stay at the current version?
Assuming you want to revert the changes to the subproject made in commit C, I would do the following: