File size: 201 Bytes
c6e3db9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
source ~/venv/bin/activate

while true
do
  echo -n "Checking at .. "
  date
  BEHIND=`git rev-list origin..HEAD`

  if [ ! -z "$BEHIND" ]
  then
    git push origin
  fi

  sleep 180
done