Set the post-receive file permissions by running: sudo chmod +x post-receive.Git -work-tree=/var/www/newsite -git-dir=/var/repo/newsite.git checkout -f bare means that our folder will have no source files, just the version control.Ī number of new folders will be created, cd into the hooks directory cd into /var/repo/newsite.git and run: sudo git init -bare.Ensure a new directory has been created in the www directory.The new directory path should look like /var/repo/newsite.git.On the live server, go into /var/repo and create a new directory inside eg newsite.git. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |