I accidentally checked in a wrong submodule update: ( as part of a bigger commit )
-Subproject commit 025ffc
+Subproject commit f59250
It is already pushed to the remote..
How do I undo this update?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Run
git checkout 025ffcin the submodule directory and thengit add SubmoduleName; git commit -m 'Some message'in the main directory.(Remember that checking out a commit through its hash leaves you in “detached HEAD state”, meaning that you’re not on any branch. So if there already is a branch pointing to
025ffcin the submodule repository, you should check out that branch; otherwise, you’ll probably want to create a branch there and check it out.)