bashadvanced
Git Submodule
Git workflow: git-submodule
bashPress ⌘/Ctrl + Shift + C to copy
#!/usr/bin/env bash
set -euo pipefail
git submodule add https://github.com/example/lib.git vendor/lib
git submodule update --init --recursive
git statusUse Cases
- version control
- collaboration
Tags
Related Snippets
Similar patterns you can reuse in the same workflow.
bashintermediate
Git Hooks Pre Commit
Git workflow: git-hooks-pre-commit
Best for: version control
#git#version-control
bashadvanced
Git Hooks Post Commit
Git workflow: git-hooks-post-commit
Best for: version control
#git#version-control
bashadvanced
Git Lfs Large Files
Git workflow: git-lfs-large-files
Best for: version control
#git#version-control
bashbeginner
Git Annex
Git workflow: git-annex
Best for: version control
#git#version-control