Clean removal and clone of Git sub module

Bash commands to remove a folder from the Git index and reinclude it cleanly as a Submodule

Clean removal and clone of Git sub module

This really is a short gist showing a clean way to remove a plugin which has been indexed by the main project Git repo but which now needs to live in its own repo – as a Git Submodule:

In the example above you would replace REPO with the name of the GitHub repo – for example q and USER with your GitHub user name – for example qstudio – giving:

https://github.com/qstudio/q

That’s it! Happy coding đŸ™‚

Gist List
Get the Gist of things
Read the Comments
Open on github

Comments

No comments on this article yet.

Add a Comment

Your email address will not be published.

These HTML tags work: <a href=""> <code> <strong> <pre>


Connect:
OR

Our Services
Validate your ideas before diving in. Consultancy
Dig deep, audit your data, prepare for action Discovery
Get everything in shape to smooth the project path. Shaping
Let us help you realize your imagination Design
Rock-solid WordPress tools, built to last. Development
Without water, the garden will not grow. Support


Projects
Quinta de Sant’Ana, Portugal
Quinta de Sant’Ana, Portugal

Quinta de Sant'Ana overlooks the picturesque village of Gradil with its cobbled streets, white washed houses and hospitable inhabitants.


Projects: View All or
Releases
Willow
Willow

Willow is a Logic~less Template Engine built for WordPress. Willow plays nicely with ACF, is quick to learn and developer-focused.


Releases: View All or