0

I had to reset a current branch to a previous commit. I did

git reset --hard prev_commit_id

When I did a git status, it shows that my submodules have changes not staged for commit, presumably because the submodules are newer than what I reset my branch to. I am wondering what is the proper way to also reset those submodules to whatever state they were in at prev_commit_id?

5

0

Browse other questions tagged or ask your own question.