Split the URL by line breaks into separate requests. With git reset the repo with each run. First perform a hard reset to remove any local patches and then switch back to master incase the repo was left on a branch or a detached head.