Skip to content

Instantly share code, notes, and snippets.

View kjblanchard's full-sized avatar
:shipit:

Kevin Blanchard kjblanchard

:shipit:
View GitHub Profile
@xtrasmal
xtrasmal / create_icns.sh
Last active October 31, 2024 19:02
Create a .icns file and/or png placeholders. Uses imagick to create the placeholders.
#!/bin/bash
# Icons and names
ICONS=(
"icon_16x16.png:16x16"
"[email protected]:32x32"
"icon_32x32.png:32x32"
"[email protected]:64x64"
"icon_128x128.png:128x128"
"[email protected]:256x256"
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
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