I
I
Igor Novikov2021-07-01 16:46:36
git
Igor Novikov, 2021-07-01 16:46:36

How to use multiple github accounts on macbook?

When first configured, git populated the global config.

[user]
  name = Ivan Ivanov
  email = [email protected]
[color]
  ui = auto


Then I created a new repo and registered a local config for it with the same name, but with a personal email. I sent a commit to this repository, switched to another repository where, in theory, the global config should work. I'm trying to commit - I get a Permission denied message for a user from the previous repo (for which I set the local config). Why is this happening?

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