I needed to create bare Git repos in order Gitify local projects and publish them here.
These are my notes on how to do it.
Create a project folder for the project with the extension .git (this seems to be the convention for a bare repository).
Next initialise a bare repo.
cd project.git git --bare init
Local workstation side
Enter the project directory and initialise it as a git repo.
cd project git init
Set the repo as remote.
Add the local project files to the project and make the initial commit. (See the notes on line endings)
git add -A -v git commit -m "Initial Commit"
Push the changes to the remote server.
git push -u origin master
Setting a username etc.
git config --global user.name "Your Name"
git commit --amend --reset-author
For the viewgit web based interface
Edit the localconfig.php script in viewgit/viewgit/localconfig.php. Add the new project to the projects array.