Get a git submodule checkout on remote

Get a git submodule checkout on remote

Since switching to GIT from SVN, I have to say that my “developer live” is much simpler. Especially dealing with branches, tags and “externals” (submodules) has been a step forward. Whereas in the past, I’ve cringed each time I was thinking of branching my code and afterwards merging it with SVN, it is now a joy doing so in GIT. Now, branching really works.

In any case, the issue I’ve had today was that I wanted to update one of our staging servers with a plugin I’ve developed and subsequently used a submodule for it. Now, why checking out the existing repository on the staging server, it shows the submodules directory but they were empty. Hmhmh…

According to the docs, even thought the repository sees the submodules, it will not check them out automatically. After some more reading, I’ve figured that one has to¬†initialise¬†them. Right, so here is the code:

[code]git submodule init
git submodule update[/code]

Voila, your submodule directories are now “blessed” with the new code and you are ready to rock. Enjoy.

Trusted by over 2,000 organizations with millions of emails

Helpmonks helps us answer customer emails at lighting speed
We couldn't do our job without Helpmonks!
Helpmonks, the best thing since sliced bread
Excellent option for collaborating email amongst your team
A good platform that is here to grow and help you grow
Helpmonks is a great tool that our company utilizes and depends on
Great shared inbox for the team
Fantastic email support service for any business
Easy to navigate and catalog data for specific users
Solid Helpdesk software w/ responsive customer support
A really good solution to manage customer support mailbox
Good support, useful features

One more thing...

Helpmonks gives you the ability tocollaborate as a groupin your shared mailbox, features aTeam To-Do App, powerfulCustomer Relationship Management (CRM)capabilities, a completeLive-Chat tool, a mighty Email Marketing Platform that includes sending ofemail campaignsandemail automation, collision detection, email tracking, reminders, mentions, custom fields, custom applications, customer satisfaction ratings, Single-Sign-On (SSO) & SAML authentication, Trello, Zapier, Slack, an API, and much more.

Check outthe complete feature listor sign up for afree 30-day shared inbox trial now