I have a local git version control installed on RedHat 8 server.
When I run git add *, it asks me to provide the sudo permissions which is sudo git add *. This makes the add run with the root for me. All the other team members do the same.
When I run git log it provides me with the list of changes however the changer for all changes is root.
How to make each user run with its own credentials?