October 4th, 2011, 02:25 PM
Git: writing data form repository
I am new to git and I have installed a client on two computers and I am able to manage changes to the git repository from either computer. I see the diffs and I am happy so far. I have a website that we manage the data through git but my question has to do with writing the data from the git repository back to public_html. Can I write the data from the git to public_html using git or do I have to write a bash script myself that will do that?
October 4th, 2011, 06:35 PM
I don't really understand your question. public_html can be a git repository if you want. Then you can either push to it from other repositories, or pull to it from another repository.
October 4th, 2011, 07:53 PM
You are correct but the git repository is not in public_html. They are separate and I need to copy the data to public_html once its committed.
Does git have a command to do that?
October 5th, 2011, 09:33 PM
You'll probably need to write a script to do it.
October 5th, 2011, 09:49 PM
Is it a good idea to have the git repository be at the same place as the public_html?