Bash script to move git repo one commit at a time