Deploy a project using Git push

后端 未结 19 938
囚心锁ツ
囚心锁ツ 2020-11-22 07:06

Is it possible to deploy a website using git push? I have a hunch it has something to do with using git hooks to perform a git reset --hard on the

19条回答
  •  抹茶落季
    2020-11-22 07:44

    Given an environment where you have multiple developers accessing the same repository the following guidelines may help.

    Ensure that you have a unix group that all devs belong to and give ownership of the .git repository to that group.

    1. In the .git/config of the server repository set sharedrepository = true. (This tells git to allow multiple users which is needed for commits and deployment.

    2. set the umask of each user in their bashrc files to be the same - 002 is a good start

提交回复
热议问题