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 6380833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:19:07+00:00 2026-05-25T02:19:07+00:00

I recently opened a repo on GitHub. I’m new to Git. As usual with

  • 0

I recently opened a repo on GitHub. I’m new to Git. As usual with newcomers, I committed using the default name and email, which I, in the best noob tradition, discovered five commits too late. Now the fun starts, cause I started to search for info on how to change the author & committer name of these commits. Fine. I basically found the following info and a lot of copies:

  1. http://help.github.com/change-author-info/

  2. Delete commits from a branch in Git

  3. How to remove selected commit log entries from a Git repository while keeping their changes?

  4. Change the author and committer name and e-mail of multiple commits in Git

  5. Change commit author at one specific commit

  6. Change first commit of project with Git?

  7. Could I change my name and surname in all previous commits?

The problem does not seem to be uncommon. I can only say that none of the solutions worked. Half of them are variations of the same git filter-branch -f --env-filter script. I tried to work on that script multiple times. The problem is that after applying the script, I cannot push. “Fast-forward pushes rejected” or something like that. Fine, the only way to go on is to pull. After pulling, all the old info is there again + a new branch with the new info. I’m already sitting here with four branches, merged in the most egregious ways, all containing the same info with different author names, including the one I wanted to delete.

OK to cut it short, I also tried to delete selected commits, which generates hair-raising conflicts that I am unable to resolve (how???), and to squash some of the commits into newer ones with the correct author information, which results in the current project state being wrecked. Even better, I get a segmentation fault sometimes after executing git rebase -i , which I’m informed here: http://lists-archives.org/git/729800-rebase-i-segmentation-fault-and-another-problem.html is completely logical. The only thing that (thankfully) works is git rebase --abort, which saved my ass multiple times.

I hope my frustration does not repel, but instead amuse you and stimulate you to help me. I’d like:

  • To remove said author info finally

  • Bonus: To get rid of all the branches containing the same information.

But I’d be happy with the first one too, if the hurdle of deleting past branches without wrecking the current state is too much for a git newcomer. Thanks in advance.

  • 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-25T02:19:08+00:00Added an answer on May 25, 2026 at 2:19 am

    The problem is that after applying the script, I cannot push. “Fast-forward pushes rejected” or something like that.

    This problem cannot be avoided if you’re trying to modify the history. Git’s rejecting the push because it causes data to be lost; in this case that data is the old authors. You just need to git push with the --force flag to tell it you’re sure of what you’re doing.

    Messes in Git can be a pain to resolve. If master is a mess, I usually just move back through the history with git checkout HEAD~ until I get back to a time when things weren’t terrible. I then git branch --force master to reset master to that point. Finally I delete all of the messy branches with git branch -D badBranch.

    Be careful.

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

Sidebar

Related Questions

I am creating a modal view which is opened using the following code [[self
Recently I opened a .dll file produced by Visual Studio 9 while compiling a
Here's an interesting problem. On a recently installed Server 2008 64bit I opened IE
I wrote an application recently, which relies on OpenID for authentication. A lot of
Recently we got a new server at the office purely for testing purposes. It
I have recently started using doc-view in Emacs, but I am having quite a
I'm really new to programming, and creating programs. Recently I was browsing around iTunes
I was using the java.net.URL.openStream() method to retrieve content from the server. I recently
After Eclipse starts I see only 4 recently opened files. Is it possible to
I recently simulated multiple login in PHP using 1 account. Here's what I did

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.