Get error - branch does not exist trying to import from GitHub

Mike D4
Tera Contributor

Hi

Trying to follow the steps here on how to import an application from GitHub

https://developer.servicenow.com/dev.do#!/learn/learning-plans/paris/technology_partner_program_quick_start/app_store_learnv2_buildneedit_paris_exercise_create_the_needit_application_from_source_control

but it is not for the NeedIt application.  It is for an app I built a while ago against Orlando release ... but pretty sure that is not part of the issue.

in the secion "Import the Application from the Forked Repository"

step 6 ... I tried both "main" and the default branch "sn_instances/dev106513" ... and in both cases I get the error:

The branch sn_instances/dev106513 does not exist

or

The branch main does not exist

Am I doing something wrong?  

Any guidance appreciated.

 

Thanks,

Mike

 

 

1 ACCEPTED SOLUTION

Mike D4
Tera Contributor

Hi Yuki,

 

Thanks for the reply. Yes I realized the video was using an older release. I did watch a video for a newer release and followed the instructions in the Doc for Paris.

Yesterday I figured out what the problem was. I got thrown off b/c I mis-interpreted the doc and the video. They imply that the "Branch" in the dialog (thanks for the screenshot) is within the ServiceNow instance OR in the repository itself.  What I discovered is that what SN is looking for in that field is the branch in GitHub.  Once I provided that branch name, the Import was successful.

Thanks again for you reply.

 

 

Thanks,

Mike D

View solution in original post

7 REPLIES 7

jjones4773
Tera Guru

I created full instructions to follow. Hope this helps.

MENDORX15
Giga Contributor

Hi all, I found a solution for this.

 

Type "master" and the application will be imported successfully


 Screenshot 2024-04-22 110742.png

Stephan Kruger
Tera Contributor

Thank you, your solution worked 100% when using the branch specified in GitHub.