Search code examples
gitauthenticationibm-clouddevops

How to authenticate to Bluemix with git?


So my BlueMix control panel contains the comment,

URL de Git: https://hub.jazz.net/git/dllamber/redjuego

However, accessing it seems to require some sort of authentication...

$ git clone  https://hub.jazz.net/git/dllamber/redjuego
Initialized empty Git repository in /home/dllamber/src/redjuego/.git/
error: The requested URL returned error: 401 Unauthorized while accessing https://hub.jazz.net/git/dllamber/redjuego/info/refs

fatal: HTTP request failed

How do I pass my username and password to git for this purpose? And what do I use... my IBM ID (a no-longer-deliverable email address) and password? Or the deliverable e-mail address associated with that ID as the user ID? Or something else?


Solution

  • To access a private repo or one that requires authentication, use this format:

    https://your_alias:[email protected]/alias/project_name
    

    Documentation on this can be found here.

    Hope this helps!