Should the Git repository root be the same as the project root on our IDE?

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?

Answers


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:

projectName
|
+ cron jobs
+ db_scripts
+ libs (third party libraries)
+ php library code (e.g. database access, models, utilities etc)
+ tests
+ www_root
  |
  + images
  + etc...
  index.php
  ...
+ etc...

Need Your Help

protect files via .htaccess and PHP

php .htaccess redirect http-headers

Might have been discussed before, but I just can't find a quick and clean solution.

C Program to convert word columns into integer

c arrays gcc segmentation-fault

I am writing a program in c to calculate the integer value of a word column.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.