i posted question regarding git bash referencing old github account username. refer post here: original post
now i'm convinced windows somehow storing ssh info , using git bash session. when ever try push remote repo, keeps stating
remote: permission myusername/project.git denied old-user-name
i've changed could. have searched every directory looking reference of old username , can't find anything. have repeated ssh key generation process @ least 3 times no luck. why keep bringing old username?
so question, windows have type of caching system ssh keys? though explicitly loading new key, keeps bringing reference old user name. thing can think ssh agent isn't using new key, , when attempts connect github, sees old key , associates old username. again, doens't make sense due fact deleted old key old github account...
i'm kill git..
i think key here might using https clone new repository in turn not use ssh keys @ authentication.
i suspect credentials being cached credentials helper. see this:
https://help.github.com/articles/caching-your-github-password-in-git/#platform-windows
on windows, if you've used wincred helper (git config --global credential.helper wincred
), stores credentials in windows credential store has control panel interface can delete or edit stored credentials. see instance:
with store, details secured windows login , can persist on multiple sessions. added in git windows 1.8.1.1.
so either:
try clearing credential cache https cloned repo using following , try again:
git credential-osxkeychain erase host=github.com protocol=https
or,
- edit credentials using windows control panel's credential manager.
and try pushing https-cloned repository again when should prompted authentication details again.
Comments
Post a Comment