Skip to content

Instantly share code, notes, and snippets.

View vrakesh's full-sized avatar

Rakesh Vasudevan vrakesh

  • Amazon Web Services
  • Santa Clara, CA
View GitHub Profile
@ryaninvents
ryaninvents / unsubmodule.md
Created May 5, 2016 13:25
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