Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 883 Bytes

project-submodules.md

File metadata and controls

46 lines (30 loc) · 883 Bytes

Project submodules

This project has its content as git submodule in super-blog-content folder.

Init submodules

git submodule update --init --recursive

To pull updated content run

git submodule update --recursive --remote

Pull one submodule only

  • Change to the submodule directory cd submodule_dir

  • Checkout desired branch git checkout main

  • Update git pull

  • Get back to your project root cd ..

  • Now the submodules are in the state you want, so git commit -am "Pulled down update to submodule_dir"

Pull all submodules:

git submodule foreach git pull origin main

Pull submodules manually

This is useful for this project if you want to have different test branches and not main on every project

cd super-blog-content/ && git pull && cd .. && cd super-styleguide/ && git pull && cd ..