I’m developing a PHP application in a IDE, and want to use Git for version control.
How should I arrange my repository layout?
Should the Git repository root be the same as the project root on our IDE, or a sub- or superdirectory?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would recommend a git repository lay out with the project name as the root, under which all your source would lie, including cron jobs, db scripts, unit tests, library code as well as the PHP source in your www root. For example: