Brian Love
Google Developer Expert in Angular, software engineer and skier located in Denver, CO

Git Submodule Cheat Sheet

Reading time ~1 minute

A quick and dirty cheat sheet for Git submodules. In the examples I am using the FontAwesome repository hosted on GitHub.

Remove existing files from index

$ git rm -r src/less/font-awesome

Add submodule

$ git submodule add src/less/font-awesome

Update all submodules

$ git submodule foreach git pull origin

Brian Love

Hi, I'm Brian. I am interested in TypeScript, Angular and Node.js. I'm married to my best friend Bonnie, I live in Denver and I ski (a lot).