Hi Support !
if i’m on a branch that isn’t main, and my code says
IMPORT ‘github:// …’
then is this importing from main ? I think it is.
How do I get to import from the branch that’s the same as mine?
thanks
Elliot
Hi Support !
if i’m on a branch that isn’t main, and my code says
IMPORT ‘github:// …’
then is this importing from main ? I think it is.
How do I get to import from the branch that’s the same as mine?
thanks
Elliot
Hello,
So this is our github url syntax:
github://<username>/<repository>/<filename>[\[<branch>\]]
so to to specify a branch which is not main you will do something like
github://username/user-repo/1/public/code.rql[errors]
In this example I am importing the code.rql
from the branch errors
in my personal user-repo repository.
If the branch is not specified it will try “main” and “master” in that order and use the first one that works
Unfortunately there is no way of importing a file on the same branch as you are. We can look at that if this is important to you?