Toronto Escorts

Any GIt expert in the room?

genintoronto

Retired
Feb 25, 2008
3,226
3
0
Downtown TO
renteddesign.com
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
HTML:
$ git remote add 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
HTML:
git submodule add git://github.com/...
I've tried
HTML:
git clone https:/github.com/...
, 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!
 

benstt

Well-known member
Jan 20, 2004
1,531
402
83
Does this help?

http://git-scm.com/book/en/Git-Tools-Submodules#Cloning-a-Project-with-Submodules

"Here you’ll clone a project with a submodule in it. When you receive such a project, you get the directories that contain submodules, but none of the files The rack directory is there, but empty."

" You must run two commands: git submodule init to initialize your local configuration file, and git submodule update to fetch all the data from that project and check out the appropriate commit listed in your superproject:"
 

genintoronto

Retired
Feb 25, 2008
3,226
3
0
Downtown TO
renteddesign.com
I think so. I remember reading this at some point, but forgot about it. It's still a bit obscure to me, but hopefully, it will all get clearer with time. I'll try again. Thanks.

Does this help?

http://git-scm.com/book/en/Git-Tools-Submodules#Cloning-a-Project-with-Submodules

"Here you’ll clone a project with a submodule in it. When you receive such a project, you get the directories that contain submodules, but none of the files The rack directory is there, but empty."

" You must run two commands: git submodule init to initialize your local configuration file, and git submodule update to fetch all the data from that project and check out the appropriate commit listed in your superproject:"
 
Ashley Madison
Toronto Escorts