8000 Is there a way to clone private repo using github token from specific branch · Issue #669 · ruby-git/ruby-git · GitHub
[go: up one dir, main page]

Skip to content
Is there a way to clone private repo using github token from specific branch #669
Open
@kashiftufail

Description

@kashiftufail

Hi,

I want to clone private repo using this code below. We are getting Github token from Github authentication.

        git_url = "https://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:x-oauth-basic@github.com/kashiftufail/fashi.git"   
        path = Rails.root.join('tmp','clone',"300")    
        g = Git.clone(git_url, "test", path: path)   
        g = Git.clone(git_url)

but this code i have gotten this error.

         Write access to repository not granted. fatal: unable to access 'https://github.com/kashiftufail/fashi.git/': The requested URL returned error: 403

Any help plz.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0