A
A
ahmed_al_asad2016-12-06 20:17:38
git
ahmed_al_asad, 2016-12-06 20:17:38

Why can't I change the user on github?

I had an old account on github, from there I pushed and pushed everything. Created a new account, changed everything as it should.

git config --global user.name "example"
$ git config --global user.email example

For some reason, when I push, he climbs to the old Heartprogrammer user, and I have a new zoxon470.
MacBook-Pro-Ahmed:kstu_project HeartProgrammer$ git add .
MacBook-Pro-Ahmed:kstu_project HeartProgrammer$ git commit -m "initial commit"
[master 161c992] initial commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 delete mode 100644 readme.txt
MacBook-Pro-Ahmed:kstu_project HeartProgrammer$ git push -u origin master
remote: Permission to zoxon470/library.git denied to HeartProgrammer.
fatal: unable to access 'https://github.com/zoxon470/library.git/': The requested URL returned error: 403
MacBook-Pro-Ahmed:kstu_project HeartProgrammer$

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question