![](https://tistory1.daumcdn.net/tistory_admin/blogs/image/category/new_ico_5.gif)
git_pull.sh 내용#!/bin/bash cd /home/dev_admin/www git fetch local=$(git rev-parse HEAD) # echo $local target=$(git rev-parse origin/dev) # echo $target if [ $local != $target ] then echo "--------------------------------------------------------------------------------" echo "Update : $(date +%Y)-$(date +%m)-$(date +%d) $(date +%H):$(date +%M):$(date +%S)" git pull origin d..