LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-delete-submodule

Completely remove a submodule from repository

TLDR

Delete a submodule
$ git delete-submodule [path/to/submodule]
copy

SYNOPSIS

git delete-submodule path

DESCRIPTION

git delete-submodule completely removes a submodule from a repository, automating the multi-step process that Git requires for proper submodule deletion. Part of git-extras, it handles all necessary cleanup operations in a single command.Removing a submodule manually involves deinitializing it, editing .gitmodules, removing entries from .git/config, deleting .git/modules/[name], and removing the working directory. Missing any step leaves residual configuration causing future issues. This command ensures complete removal by orchestrating all required operations.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid