git - github Push permission denied over both SSH and HTTPS -
new git , github. author suggested in issue discussion make pull request. cloned repo with recommended https link on personal machine (not github repo) , committed edits. i'm trying generate pull request i'm not sure how. solutions i've found looking around haven't been helpful. below output of bash git commands.
user@machinename odkwk52 /c/websites/github/repo (master) $ git status on branch master branch ahead of 'origin/master' 2 commits. (use "git push" publish local commits) nothing commit, working directory clean user@machinename odkwk52 /c/websites/github/repo (master) $ git remote -v origin ssh://git@github.com/repo.git (fetch) origin ssh://git@github.com/repo.git (push) user@machinename odkwk52 /c/websites/github/repo (master) $ ssh -t git@github.com permission denied (publickey). user@machinename odkwk52 /c/websites/github/repo (master) $ eval "$(ssh-agent -s)" agent pid 7180 user@machinename odkwk52 /c/websites/github/repo (master) $ ssh-add ~/.ssh/id_rsa_github identity added: /c/users/user/.ssh/id_rsa_github (/c/users/user/.ssh/id_rsa_github) user@machinename odkwk52 /c/websites/github/repo (master) $ ssh -t git@github.com hi githubuser! you've authenticated, github not provide shell access. user@machinename odkwk52 /c/websites/github/repo (master) $ git push --dry-run origin master error: permission repo.git denied githubuser. fatal: not read remote repository. please make sure have correct access rights , repository exists. user@machinename odkwk52 /c/websites/github/repo (master) $ git remote set-url origin https://githubuser@github.com/repo.git user@machinename odkwk52 /c/websites/github/repo (master) $ git push --dry-run origin master password 'https://githubuser@github.com': remote: permission repo.git denied githubuser. fatal: unable access 'https://githubuser@github.com/repo.git/': requested url returned error: 403
that error seems addressed on official page info there isn't helpful because ssh key has never been used elsewhere (i generated push) , because failure happens on both https , ssh. can see, ssh test run i'm not sure why i'm running error.
again, not github repo. author suggested make pull request , i'm wondering how that. must clone project github repo , push it? (i saw recommendation here) don't see why necessary.
in order open pull request you'll need "fork" repo. can github web interface.
once you've created fork, can add remote local clone:
$ git remote add my-fork <uri-for-my-fork>
then can push branch fork:
$ git push my-fork my-feature-branch
then you'll able create pull request branch on fork master on original repo using web interface.
github provides detailed documentation here: https://help.github.com/articles/using-pull-requests/
Comments
Post a Comment