Skip to content

Instantly share code, notes, and snippets.

View KITSAlexBrown's full-sized avatar

Alex Brown KITSAlexBrown

  • @KITSGitHubAdmin @stump201
  • London
View GitHub Profile
@KITSAlexBrown
KITSAlexBrown / delete_git_submodule.md
Created July 18, 2018 13:56 — 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
@KITSAlexBrown
KITSAlexBrown / README.md
Created June 13, 2018 10:52 — forked from joyrexus/README.md
File upload POST with curl

Extracted from this excellent curl tutorial


Back in late 1995 they defined an additional way to post data over HTTP. It is documented in the RFC 1867, why this method sometimes is referred to as RFC1867-posting.

This method is mainly designed to better support file uploads. A form that allows a user to upload a file could be written like this in HTML: