Git push to live server

后端 未结 6 593
北恋
北恋 2020-12-12 11:11

We have a website that has all its PHP/HTML/JS/CSS/etc files stored in a Git repository.

We currently have 3 types of computers (or use cases) for the repository.

6条回答
  •  不思量自难忘°
    2020-12-12 12:17

    Before deploying the local changes, check whether anything has changed on target server.

    Add to deployment script to ensure nothing has changed on server:

    $ git ls-files -dmo --exclude-standard
    

    Will be empty if there are unchanged files, easier than parsing git status

提交回复
热议问题