3

I have used the following commands but submodules are not fetched :(

git remote add upstream https://github.com/NecronomiconCoding/NecroBot

git fetch upstream

git merge upstream/master

git submodule foreach git pull upstream master

However the submodule FeroxRev @ 33654cd is not fetched into my local repository :(

So how can I fetch the latest submodule?

Here my project : https://github.com/MonsterMMORPG/aaddd/

When I click submodule name it goes into remote repository

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
MonsterMMORPG
  • 21,378
  • 72
  • 196
  • 320

1 Answers1

3

If you have merge upstream/master and now have a .gitmodules declaring a FerexRev suvmodule, do first:

git submodule init
git submodule update
# or
git submodule update --init

Then you can check if the submodule is present.

You can also make that submodule follow a branch.

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755