Unable to push to organization repository as owner

387 views Asked by At

I recently created an organization and a repository in that organization. I was successfully able to clone the repository, upload files to it from within GitHub, and use GitHub Desktop to push changes.

However, when I try to git push origin master I find that I have Permission denied. This is strange as I'm able to do so from GitHub Desktop and I have owner access to the organization and admin access to the repository.

If I try to run git push origin master I find that I'm forbidden to do so, despite being logged in with the correct GitHub account (according to git config --list and the error message).

emote: Permission to Gate-of-Jade/chinese-resource-app.git denied to Destaq.
fatal: unable to access 'https://github.com/Gate-of-Jade/chinese-resource-app.git/': The requested URL returned error: 403

Contents of .git/config:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[submodule]
    active = .
[remote "origin"]
    url = https://github.com/Gate-of-Jade/chinese-resource-app.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

Is there anything I'm missing or any way to be able to push from the command line as I've tried to do?

1

There are 1 answers

1
alphaX64 On BEST ANSWER

@Destaq, this may be because of not having your SSH or Personal OAuth token keys on your local systems or not present in the Organisation profile, IDK but that's the main reason. So, do check this doc page for help! Managing Git Access on Organisations