Brian F Love
Learn from a Google Developer Expert focused on Angular, Web Technologies, and Node.js from Portland, OR.
Learn Angular the right way with Ultimate Courses

Git Submodule Cheat Sheet

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 F 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 Portland and I ski (a lot).