1)
I suggest you to use TortoiseGit GUI. Go to A/C
-> TortoiseGit -> Show Log -> the revision in bold text is the one in working directory.
To check the submodule revision in working directory using command line,
cd A
cd C
git log -n 1
To check the submodule revision in current commit, go to A
-> TortoiseGit -> Repo Browser -> select C
and you can see the revision at bottom.
You can also right click to show log or copy the hash.
But the command line way is not straight forward:
cd A
git diff HEAD~N HEAD -- C
where N is number of commits you think there is a change to submodule revision.
The line +Subproject commit
shows the desired submodule revision.
2)
- Make sure submodule's working dir is clean.
- Go to
A/C
-> TortoiseGit -> Switch/Checkout -> pick any revision -> OK - Go to
A
-> TortoiseGit -> Commit -> ensureC
is checked -> OK