Submodules and Subtrees

Update all the submodules

git submodule foreach git pull

Alternatives:

git submodule update --init --recursive
git submodule update --remote

Deploying git tracked subfolder to gh-pages

git subtree push --prefix subfolder_name origin gh-pages

Alternatives:

git subtree push --prefix subfolder_name origin branch_name

Adding a project to repo using subtree

git subtree add --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master

Get latest changes in your repo for a linked project using subtree

git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master

results matching ""

    No results matching ""