add helper to track repos from remote branch

No need to use stamp file to detect failure. Use `set -e`.