I enter the team

git push -u origin master 

displays:

remote: Permission to dpApps / A.git denied to densektor1. fatal: unable to access ' https://github.com/dpApps/A.git/ ': The requested URL returned error: 403

densektor1 is my old account.

Naturally, I will not let me with this login on a new one (dpApps). How to reconfigure it?

In the .git/config file:

 [user] name = dpApps email = teamDevelopers@yandex.ru [gc] autoDetach = false [gui] recentrepo = C:/Users/Denis/Desktop/Adviser 
  • what's in the gitconfig file? or what gives git config in the console? - Mae
  • [user] name = dpApps email = teamDevelopers@yandex.ru [gc] autoDetach = false [gui] recentrepo = C: / Users / Denis / Desktop / Adviser - user220238
  • It seems correct and login and email - user220238
  • one
    look at the question and the accepted answer at stackoverflow.com/questions/5335197/… - Mae
  • If origin is connected via http (and it looks like it is), untie the local repo from the remote and re-create it, only with a new user. Better yet, connect via ssh (create id_rsa and add it to the github profile) - Andrew Paramoshkin

0