Git Bash is using my old GitHub username - how do I switch? -


i made new github account. new github account, i've created new repository. after cloning repository local pc, staged , committed files. when attempt push repository, state's don't have permission push repository. appears git bash using old github account information, seeing how return message is:

$ git push remote: permission newusername/project.git denied oldusername. fatal: unable access 'https://github.com/newusername/project.git/': requested url returned error: 403 

so seems straight forward need change account information in git bash referencing. made changes 'config' data providing new username , email. verified didn't have environmental variables (such git_committer_name or git_author_name) overriding user name.

however, when go push remote repository, still returns error message stating don't have permission upload changes.

i went far uninstalling git in hopes forget old login information, seems have remembered data. i'm looking prompt can enter github username , password.

any help?


Comments