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

  • Home
  • SEARCH
  • 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 6319635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:50:24+00:00 2026-05-24T15:50:24+00:00

I started some project on github.com. And I’m working on two machines. I did

  • 0

I started some project on github.com. And I’m working on two machines. I did something like this:

  1. Create project on github,
  2. Clone project form github on Machine1,
  3. Did some commits on Machine1,
  4. Created reposytory on Machine2,
  5. Push changes from Machine1 to Machine2 and github.

Next day I was working on Machine2. I have different configs there so I was doing commits with “–author=something” param. After finishing work I pushed my changes to Machine1.

I pushed my changes from Machine1 to github. And I can see that commits done on Machine1 have in history filed Author which is correct and also Committer filed which is from Machine1. And I don’t want to public this Commiter filed. How I can remove it?

Temporarily I did on Machine1:

git reset --hard <commit before changes on Machine1>
git push -f github master

But it looks like that getting committer information is still possible. How to remove it permanently.

Best regards,

Adam

  • 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-24T15:50:25+00:00Added an answer on May 24, 2026 at 3:50 pm

    If you only want to change committer information, you can use git rebase which takes your commits and replays them on top of another commit. The --no-ff option is important here, as it ensures that every commit will be recreated. Otherwise git will fast-forward in case when the rebase would be a no-op.

    GIT_COMMITTER_NAME=Adam;
    GIT_COMMITTER_EMAIL=adam@example.com;
    export GIT_COMMITTER_NAME;
    export GIT_COMMITTER_EMAIL;
    git rebase --no-ff <commit before changes on Machine1>
    

    This will quickly get tricky when your history is a bit more complex (merges), in that case it might be better to use filter-branch.

    If you also want to change author information, use git filter-branch and rewrite all of your commits with --env-filter. be sure to have a backup in case my command is flawed 😉 – though I do not hope so

    git filter-branch --env-filter '
    GIT_AUTHOR_NAME=Adam;
    GIT_AUTHOR_EMAIL=adam@example.com;
    export GIT_AUTHOR_NAME;
    export GIT_AUTHOR_EMAIL;
    
    git commit-tree "$@";
    ' <commit before changes on Machine1>..HEAD
    

    you can also use --all instead of a refspec to rewrite all commits in your repository

    nb: that’s a bad thing to do if you have shared your repository already and you will have to re-clone it on every machine you want to work with it.

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

Sidebar

Related Questions

I've started working on a project. I would like to store this project using
I've started working on some enhancements to an ASP.NET web forms e-commerce project, one
I've started working on a new web project with some friends... we are using
i'm trying to merge two projects, but no success. once i started some project,
I've started working on some Project Euler problems, and have solved number 4 with
I have recently started working on some open source project which I found relevant
I am using the simple_form gem https://github.com/plataformatec/simple_form to create some input fields; one of
I have just started learning Erlang and am trying out some Project Euler problems
I started a new WPF project in VS2008 and then added some code to
Ive inherited some code which started out as an Android project but really is

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.