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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:04:23+00:00 2026-05-30T15:04:23+00:00

When rebasing a change I notice Git printing the following after a git commit

  • 0

When rebasing a change I notice Git printing the following after a “git commit –amend”:

 11 files changed, 427 insertions(+), 2067 deletions(-)
 rewrite include/File1.h (71%)
 rename include/{File1.h => File2.h} (75%)
 rewrite dir1/File1.cc (86%)
 rename dir1/{File1.cc => File2.cc} (80%)

However, when I run git log -1 –stat afterwards it doesn’t show the renames:

 include/File1.h           |  160 +------
 include/File2.h           |  166 ++++++
 partition/File1.cc        | 1081 ++--------------------------------------
 partition/File2.cc        | 1031 ++++++++++++++++++++++++++++++++++++++

Is there a way to see the renames without rebasing?

  • 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-30T15:04:23+00:00Added an answer on May 30, 2026 at 3:04 pm

    Try
    git log -1 --stat -M
    The -M | --find-renames flag instructs git log to look for renames. Similarly the -C | --find-copies flag will also look for copies.
    Long-form options:
    git log -1 --stat --find-renames --find-copies

    If it’s not finding the renames you want, you can also adjust the threshold. For example, git log -1 --stat -M70% will consider any new file that’s at least 70% similar to a removed file to be a rename (the same applies to -C for copies). I believe the default is 50%.

    If you always want this behavior, you can set the config variable diff.renames. If set to true, it will always detect renames, and if set to copy or copies it will always detect copies as well.

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

Sidebar

Related Questions

I do all my daily work through git-svn, queuing up checkins and rebasing like
In which I mean rebasing in the dictionary, rather than git definition... I have
Since asking my last question which turned out to be about rebasing with GIT
I understand the scenario presented in Pro Git about The Perils of Rebasing .
Is svn-rebasing-and-pushing from multiple clients to the same Git repo vulnerable to race conditions
This gives a good explanation of squashing multiple commits: http://git-scm.com/book/en/Git-Branching-Rebasing but it does not
What strategies do people have for resolving Gemfile.lock conflicts while rebasing in Git? I
I'm rebasing in git, and one conflict I get is 'both added' - that
I'm a bit new to the whole rebasing feature within git. Let's say that
According to this article rebasing is not necessary for .NET assemblies due to JIT

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.