Adapted script to Git.