Hi guys,
So, I'm new to Git, and Google hasn't been as helpful as usual in helping me fix my problem (I should probably not blame Google as much as the Git documentation. If you can call it documentation. So obscure to the non-initiated). I could of course go to a dedicated forum, but I feel more comfy here (impostor syndrom and all that)!
So, I'm trying to improve my development workflow with Git. Here is my set up: I develop locally, setting up my project directory as a repository. On my server, I have two repositories: hub as a bare repository right above the site's html root, and prime as a regular repo in the root. I have a hook set up in hub/hooks/post-update to auto-update prime when i push change to hub. Both local and prime are set up to hub
To start my project (it's all suppose to save me time eventually!) I follow those instructions: http://davidwinter.me/articles/2012/04/09/install-and-manage-wordpress-with-git/
Everything works as it should locally, but when I deploy to production, the wordpress submodule is empty. Everything else is there, the wordpress direrctory is there, but it's empty. Instead of
I've tried
, but neither work. Or rather, both work locally, but the wordpress directory doesn't deploy to production.
I'm new to the command line and Git, so the stuff that the terminal is telling me isn't exactly clear to me. I get that it has something to do with the fact that I'm cloning a remote repo, but I don't understand what's not working and why.
If you have any ideas of what I'm talking about and what I'm doing wrong, and feel like explaining it to me, please email me at info@genevievelajoie.net. I'll be eternally grateful and owe you a beer!
So, I'm new to Git, and Google hasn't been as helpful as usual in helping me fix my problem (I should probably not blame Google as much as the Git documentation. If you can call it documentation. So obscure to the non-initiated). I could of course go to a dedicated forum, but I feel more comfy here (impostor syndrom and all that)!
So, I'm trying to improve my development workflow with Git. Here is my set up: I develop locally, setting up my project directory as a repository. On my server, I have two repositories: hub as a bare repository right above the site's html root, and prime as a regular repo in the root. I have a hook set up in hub/hooks/post-update to auto-update prime when i push change to hub. Both local and prime are set up to hub
HTML:
$ git remote add hub
Everything works as it should locally, but when I deploy to production, the wordpress submodule is empty. Everything else is there, the wordpress direrctory is there, but it's empty. Instead of
HTML:
git submodule add git://github.com/...
HTML:
git clone https:/github.com/...
I'm new to the command line and Git, so the stuff that the terminal is telling me isn't exactly clear to me. I get that it has something to do with the fact that I'm cloning a remote repo, but I don't understand what's not working and why.
If you have any ideas of what I'm talking about and what I'm doing wrong, and feel like explaining it to me, please email me at info@genevievelajoie.net. I'll be eternally grateful and owe you a beer!