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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:01:17+00:00 2026-05-26T05:01:17+00:00

I have a weird setup with Git. Basically I have: [client 1] <—> [remote

  • 0

I have a weird setup with Git. Basically I have:

[client 1] <---> [remote repo] ----> [client 2]

[Client 1] is essentially the local repo I am working with, because I can’t compile/build the project on my local machine.

[Client 2] is a remote server for building.

In the middle, I have another repo, [remote repo], basically for synchronizing with a cvs central repo in my company, and also synchronizing between my [client 1] and [client 2].

Since all the compiling/building is done on [client 2], I have many trivial commits on [client 1] just for fixing the compilation or building errors.

So by the time I find out there are errors in the last commit, it’s already too late because the commit has already been pushed to and pulled from the remote repo.

How can I squash these (many) trivial commits into one?
Thanks.

  • 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-26T05:01:18+00:00Added an answer on May 26, 2026 at 5:01 am

    First of all, avoid squashing and in general rewriting history unless you absolutely have to. Having “trivial” commits is not reason to squash pushed commits. If they can stay, let them stay. And rewriting history is not straightforward in cvs at all, so since these commits would have made their way into the cvs repo, you should probably live with it.

    For the git remote repo, if you do wish to proceed – I assume you know to squash the commits on your local repo ( git rebase -i is straightforward). After the squash, push with a -f – a force push.

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

Sidebar

Related Questions

I have a weird date rounding problem that hopefully someone can solve. My client
i have a weird problem with my local Testing-Setup of a simple Java URL
I have a weird issue. Here is the setup: I have a NSOperationQueue which
I've recently setup an inhouse git repository server and have it up and running
In our server/client-setup we're experiencing some weird behaviour. The client is a C/C++-application which
I have InApp purchasing setup in my app. I am having some weird behavior
I have a weird problem. I am trying to setup User Defined Runtime Attribute
I'm getting an weird error using queues/multiprocessing. I basically have a function that takes
I have a weird issue that only seems to be affecting IE 7. The
I have a weird error in my C++ classes at the moment. I have

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.