Answer the question
In order to leave comments, you need to log in
Is it possible to set a commit author based on a gitlab account?
The situation is this, now several developers on the project work under one ssh access and make commits to the git repository. The name and mail settings are pulled either from the local git config or from the global one. Due to technical capabilities, it is impossible to remake this structure in the near future, but I would like to be able to distinguish who made which commit.
Is it possible to somehow make user.name and user.email pulled from under the account from gitlab? That is, when trying to make a commit, the user logs in to gitlab under his own access, and the name and email from gitlab get into the commit?
If anyone did, please share the script or send an article that says how to implement this.
Answer the question
In order to leave comments, you need to log in
i.e. they work with one local repository or each has its own copy of the files? I think that everyone has their own copy of the files and no one bothers to immediately set the right author in his personal local git repository.
Repository settings override global settings. Each repository can have its own git settings - including the avotr and its email.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question