Macguire's Docs
GitHubGitHub (opens in a new tab)
  • Setup
    • Install Proxmox
    • Get ISOs
      • pfSense
      • Create Vms
      • pfSense
      • Wireguard
  • macOS
  • Topics
  • Alpine
  • Ansible
    • Resize VM Disk
  • Apache
  • Asdf
  • Borg
  • Dotfiles
  • Favicon
  • Find
  • Firewalld
  • Git
  • Host
  • Index
  • JavaScript
  • Linux
  • Message Authentication Code Incorrect
  • Moving Proxmox to New Disk
  • Mysql
  • Nextra
  • PHP
  • Phpmyadmin
  • Python
  • Rsync
  • Setup
  • Simplelogin
  • Ssh
  • Stat
  • Symbolic Links
  • TypeScript
  • WordPress
    • Box Shadow
    • Motion
    • Adguard Home
    • General
    • Home Assistant
    • Nginx Proxy Manager
    • Mdx
  • Setup
    • Install Proxmox
    • Get ISOs
      • pfSense
      • Create Vms
      • pfSense
      • Wireguard
  • macOS
  • Topics
  • Alpine
  • Ansible
    • Resize VM Disk
  • Apache
  • Asdf
  • Borg
  • Dotfiles
  • Favicon
  • Find
  • Firewalld
  • Git
    • Submodules
  • Host
  • Index
  • JavaScript
  • Linux
  • Message Authentication Code Incorrect
  • Moving Proxmox to New Disk
  • Mysql
  • Nextra
  • PHP
  • Phpmyadmin
  • Python
  • Rsync
  • Setup
  • Simplelogin
  • Ssh
  • Stat
  • Symbolic Links
  • TypeScript
  • WordPress
    • Box Shadow
    • Motion
    • Adguard Home
    • General
    • Home Assistant
    • Nginx Proxy Manager
    • Mdx

On This Page

  • Submodules
  • Add
  • Remove
  • Cloning a project with submodules
Question? Give us feedback → (opens in a new tab)Edit this page
Git

Git

Submodules

Add

git submodule add $URL $PATH

Remove

git rm $PATH_TO_SUBMODULE
git add .
git commit

Cloning a project with submodules

git clone --recurse-submodules $URL
# or, in directory after cloning:
git submodule init
git submodule update
FirewalldHost

Macguire's docs