Skip to content

Instantly share code, notes, and snippets.

@johny-c
johny-c / delete_git_submodule.md
Created July 26, 2018 12:05 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@johny-c
johny-c / .gitignore
Last active October 11, 2017 13:13 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #