/submodules-main-app

Main app which will consume submodules

Primary LanguageC#The UnlicenseUnlicense

Submodules: Main app

Main app which will consume submodules Git Tools - Submodules

Steps Done

  • Add submodule git submodule add https://github.com/gurustron/submodules-first-library ./submodules/FirstLibrary
  • Check out project with submodules (other machine/folder)
    1. Multistep:
      1. git clone git@github.com:gurustron/submodules-main-app.git
      2. git submodule init
      3. git submodule update
    2. Single step:
      git clone --recurse-submodules git@github.com:gurustron/submodules-main-app.git
    3. Rider UI
  • Update from remote
    Branch is "fixed" until the submodule remote is updated and pushed to the repo containing the submodule. So no changes are shown in new checkouts/updated of the Main app until then.
    1. Rider UI
    2. Terminal commands
      1. From submodule directory:
        1. git fetch
        2. git merge origin/main
      2. From root