M
M
mavellol2017-08-29 12:56:15
git
mavellol, 2017-08-29 12:56:15

Git how to change user for authentication?

We work as a team on the server, it becomes necessary for everyone to pull the site data from the git but from their own account. But the fact is that authentication is set up for one person and the git constantly asks for the password from the account of the first user who zpaulil data. commands like git config --global user.name "username"
git config --global user.email [email protected] don't help. Please tell me how can I change the user on the git during authentication?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-08-29
@mavellol

local settings take precedence over global ones.
so run the command in the root of your repack without the global key .
or open the .git/config file in the repack and edit it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question