Private information showing in commit while migrating from github to gitlab

I was migrating from my github account github.com/b*** . In my github account I dont know how github commit started showing my name and email address in previous commits. I want to change that commits while migrating. This happened not only on one repos but several repos. I want to hide my email and name in those commit .

  • What are you seeing, and how does it differ from what you expect to see?
    I am seeing my email address and my name in commits, which i dont want others to see those information in commit. In github people can see those email and my name, but I dont want in imported version of gitlab. I want commit date but dont want to show my email and name in that commit.

  • Consider including screenshots, error messages, and/or other helpful visuals
    Because of privacy reason, I don’t want to show my information, However I could send privately.

  • What version are you on (Hint: /help) ? and are you using self-managed or gitlab.com?
    I am using web version and importing all my github repos with commit date to gitlab.

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
    I tried to change github name and again commit but history of commit remained same.

I am really thankful to you .
Thank you for helping me :relaxed:

Hi @newperson, welcome to the GitLab Community Forum!

Both GitHub and GitLab display the user.name and user.email for authors of each commit in Git history. This happens transparently based on the settings in your git config.
To see the source of this data, and where its saved in Git history, run git config --list and git log from the root directory of a local clone.

As your name and email are embedded in Git history and there’s no way to hide Git commit author details from the UI, I suggest marking the projects themselves as “Private” to hide this information.

2 Likes

I’ve found my email and name in git config --list and alot of commits with my original name and email in log.

oh, sad, But Thank you for your information. May be you are true, matches with real life, we cant go to past history and change our condition.

I’ve found my all repos contains my private email and name even in latest repos. Making private is quite difficult when showing to recruiters my previous work.

I should start making new projects from scratch.

Would you please tell me way to make these things like user.email, user.name come from my current gitlab user.name and gitlabs email ?

I am doing this not to hide my profile from peoples. I have every information in dashboard but I can change these as i want without showing history in dashboard. I dont want to give these in repo.

Thank you for your response :slight_smile: . I love gitlab.

Hi I’ve found Its possible.

After running commit It showen disabled gray name in github. And back moving to gitlab, that disabled gray name reappears with my email address.