Skip to content

Instantly share code, notes, and snippets.

View cpres's full-sized avatar

C- Pres cpres

  • Zevo // Sacshiki
  • Oakland, CA
View GitHub Profile
@dansuh17
dansuh17 / unsubmodule.md
Created May 29, 2018 06:10 — forked from ryaninvents/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