Skip to content

Instantly share code, notes, and snippets.

View JimmyPesto's full-sized avatar

Jimmy Pesto JimmyPesto

View GitHub Profile
@ForeverZer0
ForeverZer0 / RemoveGitSubModule.md
Last active February 18, 2020 13:22
Completely remove/delete git submodule from project

Completely Remove Git Sub-Module

Two different methods to automate the process of removing a submodule from a git repo with a single command. Adapted from here.

NOTE: A commit is made during removal, so it is best to commit any other changes prior to executing the command.

Using as a script in your PATH (filename will be name of command)

  • Create a new file anywhere in your shell's search paths (i.e. ~/.local/bin)
  • Copy the following