M
M
Maxim2020-09-17 07:37:56
git
Maxim, 2020-09-17 07:37:56

How can I change the author in GitLab commits?

One person works on the project and only his authorship is indicated in all commits. One branch - master.

I ran into a curious situation, in the activity you can see how another developer pushed his commit into the project master and in the profile of this developer you can also see that he pushed into this project, i.e. in two places, the activity of this developer in relation to this project is noticeable and the names of his commits that have been pushed are visible. But the same commit in the master is listed for the first developer, as if they somehow did a rename of the author.

Is this possible for already pushed commits, and if so, how can this be done in git/GitLab? Once I did this in bitbucket, I know that there is such an opportunity with the help of git commands, but I don’t remember what the essence of this opportunity is, because. did it 1 time.

To make it easier to understand what the question is about, here are pictures from the activity and commits tabs:
5f6342bcbe38d155636631.jpeg
5f6342c60ce74563711517.jpeg
1) in the activity you can see that there are several authors, pink and yellow, and, for example, the "add faq page" commit was pushed 7 hours ago by the yellow author (which should not work in this project, but has access)
2) but in the commits (as well as in the git log) there is only one author, pink, and the same commit "add faq page", made 7 hours ago, is already listed behind him, there is no yellow author not the slightest mention, although as you can see in the activity, he also pushed a few days ago, in short, he pushed regularly, but he was somehow hidden in the commits

UPD, it became clear that the amend and rebase commands were used, but is it possible to somehow look at the real history of the commits, or is it also overwritten? The git log is the same as the gitlab commits, although I don't know all the possibilities of the logs, maybe there is some parameter to show more information.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitsliputsli, 2020-09-17
@Vitsliputsli

In a normal setup, users go to gitlab with different accounts by password or key, so this situation is not possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question