I've combed the internet... I've got this WordPress site I'm working on, and I was a little newer to WordPress (and, specifically, getting into the code nuts-and-bolts of WordPress) when I started. I now realize that I created my repo at the wrong directory level, much too high and I want it to be more in line with WordPress convention. Generally speaking, I find that that means the file structure should look like this:
root_directory/
wp-admin/
wp-content/
wp-includes/
index.php
license.txt
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
.git
.gitignore
Mine, on the other hand, looks like this:
www.website.com/
releases/
5.x_wordpress/
wp-admin/
wp-content/
wp-includes/
index.php
license.txt
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
.git
.gitignore
Now, I've looked at some posts like this and this and this to SOME success - but these posts all seem to be all about how to move a file to one level lower, into a new folder. I'm wondering how to do the reverse, how to pull the files underneath existing folders into a higher-level folder. In fairness, the git mv
command has been helpful - I'm now just one directory away from having a single directory and all my WordPress files underneath it in a nice, tracked git repo. I figure that the following command should work:
git mv 5.x_wordpress/* .
...but I get the following error message:
fatal: not under version control, source=5.x_wordpress/wp-config.php, destination=wp-config.php
I'm at a loss. Any ideas?