Sync a local dir recursively with your git repository including submoduls (with rm .git for solve conflicts) with a simple commande "gitSync". Dont forget to put your repository adresse in the variable $myGit at the start of this script.