Check if pull needed in Git

后端 未结 24 1570
忘了有多久
忘了有多久 2020-11-22 13:34

How do I check whether the remote repository has changed and I need to pull?

Now I use this simple script:

git pull --dry-run | grep -q -v \'Already          


        
24条回答
  •  不要未来只要你来
    2020-11-22 14:16

    You can also find a Phing script who does that now.

    I needed a solution to update my production environments automatically and we're very happy thanks to this script that I'm sharing.

    The script is written in XML and needs Phing.

提交回复
热议问题