bash script to move to the prev/next commit