These steps will help bypass the src ref spec ‘refs/heads/master’ error when exporting channels from Iguana to Repositories such as Github ard/or Gitlab.
This Error basically means that Iguana is trying to find your repository branch named master and was unsuccessful to do so.
That is because Repositories such as Github or GitLab by default name their branch main when a new repository is created.
In this case we will use GitHub but Gitlab also have the same steps.
To Bypass this error Simply go to your repository :
On the top-right under your profile and select “Your Repositories”
Select the Repository you have linked in Iguana,
On the top left you can see the branches , currently its set to main , click on the drop down and select view all branches at the bottom.
Select “New Branch”
Enter the name of the branch as “master” and make sure the branch source is set from the primary branch in this case main.
Click Create Branch and go back to your repository and make sure master is selected
Try Exporting your channel now , be sure to use Access Tokens instead of password when prompted for credentials , for more information: