Created
January 27, 2015 13:52
-
-
Save Jim-Holmstroem/47b22b9bc7712d607360 to your computer and use it in GitHub Desktop.
recursively replace submodules with code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule status | cut -d' ' -f3 | xargs -I{} bash -c "git config -f .git/config --remove-section submodule.{}" && find -type f -name .git -o -type f -name .gitmodules | xargs rm && rm -rf .git/modules/* && rm .git/index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
look at https://gist.github.com/Jim-Holmstroem/fd11844c83d91052840a for a more complete solution for pushing to DEIS