Github - How to clone/install specific branch?

Hey guys!

I started using Github for my package (https://github.com/AhmedSalih3d/PostSPH.jl/tree/master) and I have two different branches, “master” and “dev”. If I do the command to install the package like this:

add https://github.com/AhmedSalih3d/PostSPH.jl

It works, but say I want a specific branch ie. “dev”:

add https://github.com/AhmedSalih3d/PostSPH.jl/tree/dev
   Cloning git-repo `https://github.com/AhmedSalih3d/PostSPH.jl/tree/dev`
ERROR: failed to clone from https://github.com/AhmedSalih3d/PostSPH.jl/tree/dev, error: GitError(Code:ERROR, Class:Net, request failed with status code: 404)

I assume the 404 error is “not found”, but how do I then do?

Kind regards

Try

add https://github.com/AhmedSalih3d/PostSPH.jl#dev

can’t test it right now.

1 Like

It works, thanks!