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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:40:22+00:00 2026-06-11T07:40:22+00:00

I have two commits that I just pushed to github The 2nd commit message

  • 0

I have two commits that I just pushed to github

The 2nd commit message after the 1st commit message is actually a bit messed up.

Is there a way to change the 2nd commit message after pushing it to github?

I know amend will work only if it hasn’t been pushed to github. No one hasn’t branched off my current dev branch, so it’s safe to assume that no one will be affected if I do this.

  • 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-06-11T07:40:23+00:00Added an answer on June 11, 2026 at 7:40 am

    Try using Git’s interactive rebasing feature. From git-rebase(1):

    -i, –interactive
    Make a list of the commits which are about to be rebased. Let the
    user edit that list before rebasing.

    If you run git rebase --interactive HEAD~2, you’ll be able to instruct Git to reword the second-most-recent commit message. Chapter 6.4 in Scott Chacon’s Pro Git has a lot of good information about interactive rebasing.

    As hobbs has already commented above, you’ll still need to do a forced push.

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

Sidebar

Related Questions

Given that two branches have diverged and a specific commit from one branch (and
I have two branches with several commits each. On one branch, I can go
I have two git branches, A and B, and commits numbered 1 thru 8.
I have two PL/SQL Stored procedure each handling its own Transaction (Begin/Commit and Rollback
I have two machines, A and B that both access an external hg repository.
I have two branches that are different enough that rebasing seems to not work
I'm just trying to hook Trac/SVN together so that my SVN commits manage my
I have a repo that I've been using with GitHub. Previously, the repo had
I need to know why two commits are different. I have two commits, e2383d
I have a git repository with two branches; one for code that's used for

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.