Skip to content

Commit

Permalink
adding wp-content plugins and themes folders, with readme.txt files j…
Browse files Browse the repository at this point in the history
…ust to force git to track them, but also useful for explaining how to add a submodule
  • Loading branch information
eddiemoya committed Jul 10, 2013
1 parent e8cba91 commit 041fd2b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wp-content/plugins/readme.txt
@@ -0,0 +1,15 @@
To add a new plugin use the following git command:

> git submodule add --name <plugin_name> <repo_uri> wp-content/plugins/<plugin_folder_name>

<plugin_name> - This is used as a shorthand to refer to submodules so that you can later refer
to them this way instead of via the full path - recommend using same value as
that of <plugin_folder_name>.
<repo_uri> - This should be the SSH URI (looks like git@domain/repo.git) when this is an
internally developed plugin. HTTP URI's are the least preferred.
<plugin_folder_name> - This is the name of the folder the plugin will reside in, no leading or trailing
slashes. NOTE: Some plugins (poorly written ones) may require its containing
folder be named a certain way.

This file is necessary in order to force git to track the /wp-content/plugins folder without actually having
any plugins in it.
15 changes: 15 additions & 0 deletions wp-content/themes/readme.txt
@@ -0,0 +1,15 @@
To add a new theme use the following git command:

> git submodule add --name <theme_name> <repo_uri> wp-content/plugins/<theme_folder_name>

<theme_name> - This is used as a shorthand to refer to submodules so that you can later refer
to them this way instead of via the full path - recommend using same value as
that of <theme_folder_name>.
<repo_uri> - This should be the SSH URI (looks like git@domain/repo.git) when this is an
internally developed plugin. HTTP URI's are the least preferred.
<theme_folder_name> - This is the name of the folder the theme will reside in, no leading or trailing
slashes. NOTE: Some themes & plugins (poorly written ones) may require its containing
folder be named a certain way.

This file is necessary in order to force git to track the /wp-content/plugins folder without actually having
any plugins in it.

0 comments on commit 041fd2b

Please sign in to comment.