I have a web project in Aptana Studio 3 with a git repository. Unfortunately, when it was created, it brought in all the folders like mail, etc, tmp. What's the best way to only deploy my public_html folder only to the web? Should it be the only folder in my git repository and Aptana project, or is there a way to cloak entire folders so I can just deploy the public_html to the web?
Thanks.
A GIT repository is for stuff that should be source controlled. Since mail, etc, tmp shouldn't be under source control, the solution to your problem is to get them out of the repository. It appears that your GIT repository could be at the wrong level. So you have two options:
1) Abandon the existing GIT repository and create a new one in public_html
$ cd /path/to/public_html
$ git init; git add -A; git commit 'Initial publc_html'
$ rm -rf ../.git
2) Keep the existing GIT repository but remove mail, etc, tmp.
$ cd /path/to/public_html/..
$ tar cf keepers.tar mail, etc, tmp <others>
$ echo "mail/\netc/\ntmp/\n" >> .gitignore
$ git rm -r mail etc tmp # <= careful
$ tar xf keepers.tar