Regexp

Batch Updating Submodule URLs

Posted by Jeremy Harris on Sun, Jun 26, 2011 @ 10:18am

Since I have moved all of my plugins to Github, there's obviously some updating that needs to be done on my CakePHP apps that use those plugins as git submodules. Namely, I needed to replace the old repo urls with the new ones. To do this, I first opened up my .gitmodules file using vim.

$ vim .gitmodules

Then just some regexp happiness from command mode.

:%s/git\(:\/\/\|@\)codaset\.com\(:\|...