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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:40:11+00:00 2026-05-27T15:40:11+00:00

I have a CMS that uses git to track changes to user content –

  • 0

I have a CMS that uses git to track changes to user content – I have them rolled up into a single commit every night. As you can imagine, one commit every day has made for an interesting commit log.

I’d like to tidy up a bit, and was thinking I could do so by rebasing the commits (about 100 or so) into a single commit. Is this an appropriate strategy for these automated commits? Will I run into collisions if the same file is referenced in two or more commits? Something seems to be too easy about just rebasing the 100 into 1.

E: These are content changes, not codebase changes, so they’re not really important. It would be nice to roll the changes up every once in a while to clean up the history.

  • 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-27T15:40:12+00:00Added an answer on May 27, 2026 at 3:40 pm

    By running rebase -i <upstream> and marking the 100 commits as “squash” commits in the prompt that Git provides, you should have no problems. Git will apply each patch, one after another, and you’ll end up with a single commit reflecting the state of the repository at the final commit. Choosing “fixup” will do the same thing, but will drop the intermediate commit messages (which sounds more like what you’re looking for).

    And if you run into some unforeseen issue while rebasing, a simple git rebase --abort will restore you to your original repository and version history.

    Git is very space efficient, however, so if you don’t want to lose the history, you could try running git gc. This runs the Git “housekeeping” tasks, such as compressing the commits into “Packfiles.” If the user content doesn’t change significantly day-to-day then Git should be able to compress your history very tightly. git gc --aggressive will work even harder to compact your commits.

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

Sidebar

Related Questions

I have a CMS that uses a syntax based on HTML comments to let
I have an old Asp classic CMS application that powers several websites. It uses
I have a Django based CMS that uses Django's sites framework and Nginx/Apache/mod_wsgi virtual
I have a legacy user database from a Magnolia CMS that needs to be
I have a CMS that uses one version of Telerik dlls, and have a
I have a website with a CMS that uses mod_rewrite to make URLs look
I have a CMS that I am adding Site Search functionality. The application uses
This is a bit of a specific request unfortunately. I have a CMS that
At my current job we have a CMS system that is .NET/SQL Server based.
I have a open source editor on the cms that I am making that

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.