Valery Dauzhuk
Valery Dauzhuk

Reputation: 121

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.

Upvotes: 2

Views: 4887

Answers (1)

Valery Dauzhuk
Valery Dauzhuk

Reputation: 121

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

Upvotes: 3

Related Questions