On Saturday, 20 September 2014 11:02:26 UTC+2, Tom Hopcraft wrote:
> Hi,
> I have just moved host and my old git setup was to have a working repo on 
> the server and then clone that working repo locally. I also run Wordpress 
> and when I upload files through Wordpress this would add files to the live 
> hosting that I would not have locally. To get this locally I would have to 
> SSH into the server and git add -A and commit them, I would then fetch them 
> locally.
> --
> I have done some reading up about the best way to migrate git repo's to 
> new servers as I'd like to keep my history, naturally.
> I have read that the live server shouldn't have a working repo but a bare 
> repo. That is fine by me, but then how do I SSH in and find the files ? The 
> root on the server now contains foo.git and no files where as a working 
> repo would contain a hidden .git and then foo.html, bar.html.
> I'm confused as to why you shouldn't use a working repo on the server and 
> if you are to use a bare repo, how does example.com/foo.html get found ?
> Thanks

I think what you read was that *git servers* should have bare repositories, 
not *live servers*. You're right in thinking that it wouldn't make much 
sense to have a bare repository on your live server.
Also, I don't think you should version the Wordpress core or the files 
uploaded by the users, but I can't say for sure as I'm not that experienced 
with it.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to