-1

When I am working with git submodules, in the parent repo I don't see the changes I have made in the submodule, I can only see the previous commit id. Can anyone please help me with the process

I have created submodules. this is the folder structure--

parent --submodule1 --submodule2 --pipeline script

I can't see the changes made in the submodules from the parent folder.

Expectation: I will be able to see the changes made in each submodule from the parent folder.

1 Answers1

0

If you are talking about what you see on the remote side (like a GitHub repository on github.com), then yes, you would see only the previous commit, with a white arrow to reference the gitlink (the reference to said previous commit).

Locally, when you are modifying a submodule content, adding and pushing to the submodule remote repository, you also need to go back to your parent local repository, add, commit and push from there: that will record the new gitlink (the new SHA1 of your submodule root tree), and push it: you would see the last submodule commit there, but still as a reference.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250