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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:28:37+00:00 2026-05-27T22:28:37+00:00

I followed the steps from Change old commit message on Git , and I

  • 0

I followed the steps from Change old commit message on Git, and I confirmed the commit message updated in git log. But when I click the “Commit History” tab in Github, I still see the old message and old SHA-1.

So, I blindly tried git push origin master, but that failed with:

To git@github.com:foobar.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:foobar.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.  See the
'Note about fast-forwards' section of 'git push --help' for details.

The error tells me to “merge with remote changes before pushing again”, but that seems like the wrong thing to do: merging new stuff into an amended commit (from an older base). I’m confused.

How can I commit my amended message?

  • 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-27T22:28:38+00:00Added an answer on May 27, 2026 at 10:28 pm

    if you are rewriting history, you need to call:

    git push --force
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed the sitemap activation steps on the django site but i keep getting
I've followed all the steps in multiple tutorials to enable mod_deflate in Apache but
I followed steps for package deployment on SQL given in MSDN and it was
I followed the steps in www.thinkingblackberry.com/archives/21 If I pick the 4.5.0 JDE with the
I followed the steps here and installed the composite_primary_keys gem. When I try to
Ok I followed the steps for setting up ruby and rails on my Vista
I am using the authlogic gem for authentication. I have followed the steps at:
I followed the simple steps outlined at How to: Add a Splash Screen to
I followed all the steps given in this blog. When i am trying to
Can anyone post the steps for integrating mercurial to phped. I followed the following

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.