Moving the .git folder
-
Hello,
I want to place the .git folder outside the public_html folder on my FTP-server.
I want to do this because it’s not safe to have .git folder in the public_html folder, where everyone can publicly access it.
Ofcourse I can block the access to the .git folder in .htaccess but I have read it’s safer to put the .git folder in a folder that is not publicly accessible.
So I put the .git folder a folder behind “public_html” and place a .git file (not .git folder) inside the public_html folder that is referencing to the new .git folder location. I also reinstalled Gitium just to be sure. But unfortunately this does not work.
Can this somehow work? If yes, how?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.