Skip to content

Instantly share code, notes, and snippets.

@gunnarx
gunnarx / delete_git_submodule.md
Created July 13, 2018 11: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
#!/usr/bin/python3
units = [
"A",
"N.m",
"PS",
"UNIX Timestamp",
"V",
"celsius",
"cm",
@gunnarx
gunnarx / README.md
Created June 2, 2021 10:56
Fixed links for ramses-composer

commit 1a234d1510eb00771f598acd2bb6aef792e14be0 (HEAD -> main) Author: Gunnar Andersson [email protected] Date: Wed Jun 2 12:54:36 2021 +0200

README.md: Fix links to Qt and individual files

Signed-off-by: Gunnar Andersson <[email protected]>
@gunnarx
gunnarx / PEP 0557.md
Last active September 9, 2022 11:42
Python's default values are class attributes... which makes them behave totally weird!