Update git daily sync script

Add debug mode and more