0

So I am trying to push to my repo under my account and everytime I try to use the command git push I get the following error:

remote: Permission to kpath001/kpath001.github.io.git denied to alphadsi.
fatal: unable to access 'https://github.com/kpath001/kpath001.github.io.git/': The requested URL returned error: 403

I am trying to figure out how do I delete this "alphadsi" account I have on my mac so I can start using my original kpath001 profile to properly use the git commands without getting access denied error or the 403 error.

I searched multiple stackoverflow questions and nothing seems to relate....will be a big help

Solution: delete the internet account from Mac OSX keychain

Cœur
  • 37,241
  • 25
  • 195
  • 267
KPath001
  • 870
  • 5
  • 18
  • Can't you simply grant the other user read/write access so you can use either at any time? – DeDee Mar 13 '15 at 04:35
  • Could you possibly delete the git on mac and re-install it and set it up with my account again? Will this work or would it still throw me a similar error? – KPath001 Mar 13 '15 at 04:39
  • I don't want to do that because I want the profile to show that I was the user who edited my website rather than someone else – KPath001 Mar 13 '15 at 04:40
  • I wouldn't know about Mac, sorry. I could suggest you install Atlassian SourceTree and tell it that you already have Git installed (as in, don't tell it to install git again). It may tell you about any accounts you may have set up there. – DeDee Mar 13 '15 at 04:42
  • 1
    Please don't edit your post to include a solution, post it as an answer instead and mark the answer as accepted. – Philipp Wendler Jul 24 '15 at 15:53

2 Answers2

0

At first, I think you should make sure this is your repo. If you git clone other's repo, you can't push to origin master.

Then I think you can check the git configuration. it may be in .bash_profile or somewhere you add. Try to use git config --global user.name yours and git config --global user.email yours to config your account in your computer again. For me, I add it to my .bash_profile.

edwardramsey
  • 363
  • 2
  • 12
  • I have verfied this as well and yes the git conifg file has the github user as kpath001 but for some reason when i call git push on any repo I created in my kpath001 account it uses this "alphadsi" account for somereason and I was wondering if there is a way to get rid of it entirely – KPath001 Mar 13 '15 at 04:37
  • "alphadsi" is your name ever used ? have you ever config your git info in other place in your compuer(which like .bashrc .bash_profile or any other files)? – edwardramsey Mar 13 '15 at 05:30
0

delete the internet account from Mac OSX keychain

KPath001
  • 870
  • 5
  • 18