Skip to content

Instantly share code, notes, and snippets.

View Nithishwer's full-sized avatar

Nithishwer Mouroug Anand Nithishwer

  • University of Oxford
  • Oxford, UK
  • 09:16 (UTC)
View GitHub Profile
@Nithishwer
Nithishwer / unsubmodule.md
Created October 18, 2024 15:50 — forked from dansuh17/unsubmodule.md
Convert git submodule to regular directory

From Stack Overflow.

# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin

# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master