Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6845639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:31:32+00:00 2026-05-27T00:31:32+00:00

When I first started out with this repo, I hadn’t used git before and

  • 0

When I first started out with this repo, I hadn’t used git before and biffed the setup by mistyping my email or something so all commits for a while were made by the user “unknown.” I found an answer on here to convert all the “unknown” commits to my name but what it actually did was duplicate the commit and apply my name. So now I have all these “unknown” user commits scattered.

So I was wondering about some commands to run to delete all commits by “unknown” user.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:31:32+00:00Added an answer on May 27, 2026 at 12:31 am

    You will have to make use of git filter-branch in your repo and force push it to Github.

    Here’s an example from the official docs that deals almost with the same situation where you want to remove commits by a particular user:

    git filter-branch --commit-filter '
        if [ "$GIT_AUTHOR_NAME" = "Darl McBribe" ];
        then
                skip_commit "$@";
        else
                git commit-tree "$@";
        fi' HEAD
    

    Note that this will rewrite your history and it might affect others who also use your repo. Some advice from Github:

    Dealing with collaborators

    You may have collaborators that pulled your tainted branch and created
    their own branches off of it. After they fetch your new branch, they
    will need to use git rebase on their own branches to rebase them on
    top of the new one. The collab should also ensure that their branch
    doesn’t reintroduce the file, as this will override the .gitignore
    file. Make sure your collab uses rebase and not merge, otherwise he
    will just reintroduce the file and the entire tainted history… and
    likely encounter some merge conflicts.

    http://help.github.com/remove-sensitive-data/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Back in the 90s when I first started out with MFC I used to
When I first started reading about and learning ruby, I read something about the
I was confused when I first started to see anti-singleton commentary. I have used
This started out as a general user question on Android forums. However it's become,
This is my first time using C#, so I'm very much out of my
In a project I started out with MySQL as database. Instead of checking first,
Greetings all, This has confused me ever since I first started coding in C#.
Oracle Newbie Here: I just started out creating my first Oracle database table. I
So, I started out with Mechanize, and apparently the first thing I try it
I am working on a multi-threaded application. This application started out as a single

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.