Skip to content

Remote: Repository not found. fatal: repository https://github... not found #26896

Discussion options

You must be logged in to vote

Found solution

    $authHeader= New-Object 'System.Collections.Generic.Dictionary[String,String]'
    $authHeader.Add("Authorization", "token $GHPAT")
#list repos
#curl -H $authHeader -uri https://api.github.com/user/repos

$body = '{"name":"'+"$GHRepo"+'"}'
$reply = Invoke-RestMethod -H $authHeader -uri https://api.github.com/user/repos -Method Post -body $body

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants