I have a repository that has a submodule repo, I want to run the workflow of the main repo in case of any submodule repo changes. Any suggestions ?
I have a repository that has a submodule repo, I want to run the workflow of the main repo in case of any submodule repo changes. Any suggestions ?
First, I should switch to the master branch.
cd otherrepo/
git checkout master
After making changes to the submodule repository, I should push these changes first.
cd otherrepo/
** making changes – Editing README.md file **
git add README.md
git commit -m 'editing README.md'
git push origin master
Then, push the main repository.
cd ..
git add otherrepo
git commit -m 'editing otherrepo submodule'
git push origin master