Skip to content

Instantly share code, notes, and snippets.

@YukiNagato
Created October 8, 2018 08:07
Show Gist options
  • Select an option

  • Save YukiNagato/87388765ba315449b4a63ab38a51adeb to your computer and use it in GitHub Desktop.

Select an option

Save YukiNagato/87388765ba315449b4a63ab38a51adeb to your computer and use it in GitHub Desktop.
1) Edit the .gitmodules file, and change the URL for the submodules which changed.
2) In your source tree’s root run:
user@host:/path/to/repo$ git submodule sync
3) Then run git init to update the project’s repository configuration with the new URLs:
user@host:/path/to/repo$ git submodule init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment