Good afternoon, I have the problem that when I do a git push on the github it appears to me that it was uploaded by an old user that I had, I do not know why or how to fix it in the git config user.name I have it configured to my user current.
Good afternoon, I have the problem that when I do a git push on the github it appears to me that it was uploaded by an old user that I had, I do not know why or how to fix it in the git config user.name I have it configured to my user current.
In Git you can configure the number of users and the email of who makes the changes, globally or differentiated by repository.
To do it globally, you just have to do something like this:
PS C:\ruta\cualquiera> git config --global user.name "wilmugo"
PS c:\ruta\cualquiera> git config --global user.email "[email protected]"
To make it differentiated by repository, omit the --global
flag, for example:
PS C:\ruta\al\repositorio\específico> git config user.name "wilmugo"
PS c:\ruta\al\repositorio\específico> git config user.email "[email protected]"