Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding wp-content plugins and themes folders, with readme.txt files j…
…ust to force git to track them, but also useful for explaining how to add a submodule
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |