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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:34:32+00:00 2026-05-31T08:34:32+00:00

Short version: Is there a way to check-in a change to a git repository

  • 0

Short version:

Is there a way to check-in a change to a git repository but "hide" the changeset metadata from general consumption (preserves the prior changeset in the blame, etc.)?

Long version:

I’ve recently inherited a codebase which, from the looks of it, had an initial team lead who encouraged each of his developers — as an exercise in spiritual growth — to forage out into the world and find a formatting style with which they felt most zen-like… really find their various artistic styles, apply them to code formatting, and live the life of an artist as you paint masterpieces of code every day.

Patterns emerged such as random selection of the number of newlines between statements, wrapping every method argument — declarations and calls… It goes on and on, but basically, I want to set up my formatting preferences in the IDE, turn it loose for a few hours, clean up the places by which it was confused, and commit it. I’m getting some (valid) pushback from the team about losing all of the history in the easily visible "last one touched it" slot that shows up in annotations and such.

Is there any way to make a change that doesn’t blow those away? I was also thinking there might be a branching trick out there that could do something like branch, format in the branch, reintegrate the other branch into that one, somehow making my "secret commit" up-rev of the latest that would retain the old ones.

Anyone have any suggestions? I’m perfectly willing to entertain hacks for this one-off. 🙂

  • 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-31T08:34:33+00:00Added an answer on May 31, 2026 at 8:34 am

    Short: No.

    Long: To migrate toward a consistent style, encourage your fellow developers to modify code so that it conforms to your common style when they work on it. That way, the blame attribution stays consistent for the code that has not been changed. For code that is modified, the blame attribution then migrates to the developer who last touched it. You can do this on a more granular basis, such as cleaning up formatting per-function, if you like.

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

Sidebar

Related Questions

Is there a cleaner way to get the short version hash of HEAD from
The short version: is there a way to to write an and or an
Short Version: Is there a/what is the suggested way to return error details to
Short version: Is there a simple, built-in way to identify the calling view in
Short version: Is there a simple way to get the value of a primary
Short Version Is there a way to force (or provide a hint to) Microsoft
Short version: Is there way to achieve in Python the same effect achieved by
Short version: When two lists are adjacent to each other, is there a way
short version: Is there a good time based sampling profiler for Linux? long version:
Short version question : Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers,

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.