First things first, you'll need a fresh copy of Symphony, so head to the Symphony website then download and extract the latest release.
Take the downloaded folder, and place it in your local server folder, now would be a good time to rename the it to whatever you want to call your site.
Once you've got it in place, you need to create a
*.esproj *.tmproj .Apple* .DS* .htaccess manifest
This file contains any files and folders that you do not want to be tracked by git. Now it's time to initialise git and add all the files (ignore more files if you wish):
$ git init Initialized empty Git repository in your repository $ git add .
You can now commit the first commit:
$ git commit -m "Initialised repository."
The manifest folder is always a pain — but here's how to set it up correctly. We're going to manage two separate manifest folders, one for live and one for development.
Before we do that though, we will tweak the manifest folder that came with Symphony. Create the following ignore files:
manifest/cache/.gitignore manifest/logs/.gitignore manifest/tmp/.gitignore
And fill each file with the following content:
This tells git to ignore every file except for the ignore file itself, which is handy as git won't try and merge temp files or logs.
Now, we will use this manifest folder to create our live and development manifests, just run the following command:
$ cp -r manifest manifest.live $ mv manifest manifest.dev
Now all you need to do is create a symbolic link from
manifest.live depending on where you are:
$ ln -s manifest.dev manifest
This will let you share your manifest folder with other developers, and let you examine and update the live site's manifest folder before taking it live.
Finally, add the manifest folders and commit:
$ git add manifest.live manifest.dev $ git commit -m "Added live and development manifest folders."
And you're done
Just add any extensions you need as git submodules, and start developing your site.