I have a project with a submodule:X,and run
git submodule update --init --recursive
to fetch X, then made a bunch of changes on X and committed them with comment "changes YYYY", then try to push changes to master, but got something like "not in any branch"(not exact description), so I tried
git checkout origin master
Right now, X is in branch master, but git log doesn't show "changes YYYY". How can I get "changes YYYY" back?