Skip to content

Instantly share code, notes, and snippets.

@ekancepts
Created April 11, 2014 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekancepts/10457950 to your computer and use it in GitHub Desktop.
Save ekancepts/10457950 to your computer and use it in GitHub Desktop.
Wordpress-svn-git

I am trying to develop and maintain a project in Wordpress.

I am preferring git for 'version control'

I am cloning Wordpress core as git submodule in my local system.

I separated wp-content folder,wp-config.php,index.php from wordpress core folder and placed them outside the folder.

Updated the index and wp-config files appropriately to make this work.

Now i can update wp-core by pull and not worry about messing up wp-content folder where my theme files and plugins are present.

i followed this article to configure the above setup.

Now i want to update plugins too like this.

For example let a plugin name be 'eg-plugin'

i want to add this as git sub module and pull from remote whenever the plugin is updated but the wordpress plugins are in svn. How can i pull from svn and maintain all plugins in git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment