简体   繁体   中英

Git Update Submodule in main repository

The problem is that I can't apply changes made in my submodule to main repo. Steps:

  1. I create main repo at github.
  2. git clone [repo URL]
  3. cd [main repo folder]
  4. git submodule add [link to github submodule repo].
  5. I use vscode to make small changes in my submodule repo. Everything stages and commits fine.

I can't find a way to synchronize it with my main repo.

git pull --recurse-submodules git submodule update --remote --recursive

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM