Build failing after replacing GitHub repo

I need advice to debug deploy https://app.netlify.com/sites/lucid-williams-d9d3b4/deploys/5e17814bb6ad89000e94e471

I’m deploying automatically from GitHub, and replaced my repo with a new one by doing git push --force origin master. Now, my build fails saying:

11:39:00 AM: git ref refs/heads/master does not exist or you do not have permission
11:39:00 AM: Failing build: Failed to prepare repo
11:39:00 AM: failed during stage ‘preparing repo’: git ref refs/heads/master does not exist

Any tips for how to get automatic deploys working again?

I re-connected to GitHub, problem solved :).

2 Likes