Change git external submodule to local repo

Why doing this? an external submodule is not public anymore.

rm .gitmodules, or edit it to remove the selected submodule.

Remove the submodule’s entry in the .git/config

git rm –cached external/selected-submodule

git add external/selected-submodule

git commit -m

git push

Credit: http://chrisjean.com/2009/04/20/git-submodules-adding-using-removing-and-updating/

Advertisements

3 thoughts on “Change git external submodule to local repo

  1. Please let me know if you’re looking for a article author for your site. You have some really great posts and I think I would be a good asset. If you ever want to take some of the load off, I’d love to write some content for your blog
    in exchange for a link back to mine. Please shoot me an email if interested.
    Thank you!

  2. Men taking Viagra tablets for erectile dysfunction treatment
    should be aware that the medicine does not work as
    an aphrodisiac. Do not alter the Viagra dosage without consulting your doctor first.
    Earlier it was believed that impotence only had physical causes but now research supports the fact
    that impotence can also be caused because of emotional problems.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s