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

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello Mike,

Please Visit this link maybe it will help you.

https://www.youtube.com/watch?v=Ev6wJp4ovIw

Please, mark helpful if you get your solution.

Thanks

Hi Chetan

Thanks for the fast response. I did watch the video. Unfortunately it did not help me resolve the problem.

 

Thanks,

Mike

yuki17
Kilo Contributor

find_real_file.png

Hi Mike D.
First of all, the video is Kingston's version, so it's hard to decide. It's not all wrong, but it's not kind to the questioner.
By the way, I've given you a screenshot, and I think you're watching this, too. If you're using something that's free, you'll probably see sn _ instances/devxxxxx in Branch (In this example, main is entered.).
It's not necessary, so let's delete it.
I think we can do that.

What it does is it has a new Up Date Set. Note that it is automatically replaced.

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