How to fetch submodules in github

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 🙁

  • How can git be installed on CENTOS 5.5?
  • Git best practice for config files etc
  • git diff between branches but ignoring the effect of certain commits
  • git merge squash - conflict resolution when all I want is the changes from the branch I squashed from
  • Is it OK to have a development branch where individual commits may not even be working?
  • git shallow clone (clone --depth) misses remote branches
  • 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

  • JGit sets git: URI instead of https: for remote on CircleCI
  • git commit error saving vimfiles
  • How to make git-diff create a “context” format diff?
  • After rebasing my github fork, commits from others are in my pull request
  • Jenkins and multiple git branches?
  • How to set config for gitlab?
  • One Solution collect form web for “How to fetch submodules in github”

    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.

    Git Baby is a git and github fan, let's start git clone.