#!/bin/bash # # run git fetch main # and then this set -e set -o pipefail git-rev-list main/master..main/pretest | nl -ba | tac | \ while read num rev; do echo >&2 "" echo >&2 "testing $num $rev" git checkout $rev ${0%/*}/sometest-to-master done