I have two repositories on a local machine.
   main-repo
   sub-repo
I added the sub-repo as a submodule in main-repo. The sub-repo contains a readme file.
Originally, I kept the directory name the same as the repo name. I changed the sub-repo directory to sub1. Hopefully, that clears up any confusion.
   main-repo
        sub1
             readme
If I made changes to readfile from the main-repo/sub-repo/readme, NOT from sub-repo/readme directly.
These are the steps I have done. Since this is only on my local machine, I added the submodule using this command
 cd main-repo
 git submodule add file:///c:/Users/Worker/Git/t5-sub/sub-repo sub1
- cd main-repo/sub1 
- git checkout master 
- edit readme file 
- git commit . 
- git push 
- cd sub-repo directory 
- git status 
On branch master
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        modified:   readme
When I look at the content of readme file, it does not have the changes. How do pull the changes from main-repo to the sub-repo ?
 
    