Hello. I have server with ISPConfig 3.1.8p1 installed on Ubuntu 16.04.2 LTS. I will have a lot of projects, that I will need to develop on Laravel framework, but since I am developing from 2 PC and website also will be upgraded with new functions and sections then I would like to use GIT for uploading to the production server. All Laravel files will be stored in private folder, but all public files in web folder. The question is - how can I initialize the git at root directory. My website structure at GIT: PROJECT - web - ...(all public files) - ... - private - ... (all files of Laravel, controllers, models etc) - ... I can't believe, that only way to do is - push to GIT only private and web directory separately in different projects.
Remove the immutable attribute from that directory (chattr +i), create the repository, then add it back (chattr +i)