Dear all,
I found the solution. With env -i to unset the environment the git command 
does work
DATE_STAMP=$(date +%Y%m%d%H%M)
echo "checkout $DATE_STAMP" >>$LOG
cd /var/tmp/test2_clone
env -i git fetch origin
env -i git reset --hard origin/master
env -i git clean -f -d

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to