Checkout master after work in regenerate.sh