git: when doing push up the files to my repo, but with a previous user that I had

0

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.

    
asked by wilmugo 17.10.2017 в 19:06
source

1 answer

1

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]"
    
answered by 18.10.2017 в 18:57