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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:44:45+00:00 2026-05-23T22:44:45+00:00

I work in a distributed team and use a central git repository to collaborate

  • 0

I work in a distributed team and use a central git repository to collaborate on certain tasks (not code). We have several team members who are light git users, comfortable with push, pull, add commit, status, etc; but not the more advanced concepts.

Recently a very large commit was added accidentally which we wanted to remove. I did a rebase -i, removed the errant commit (which had over 1gb of binary files), and push -f‘d the changes back.

However, every time a member did a git pull in the future, it merely merges their local changes back into my changes! How do I force them to discard their local commit history and use mine. My solution was to email them all and do:

git fetch
git checkout origin/master
git branch -f master origin/master
git checkout master

Is there any better way?

  • 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-23T22:44:46+00:00Added an answer on May 23, 2026 at 10:44 pm

    You could add an update hook that verifies the offending commit is not in the history that they are attempting to push, and rejects the push if it does contain the commit in question.

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

Sidebar

Related Questions

I'm in a small distributed team using Mercurial for a central repository. We each
I have a distributed app where resources get locked for exclusive use by tasks.
We have a distributed .net system which consists of several solutions, each with different
I work in a small iPhone development team, in our office, we have at
I work on a large Scala project where we use Git for version control.
At work, we have multiple branches that we may be working on at any
At work today, I came across the volatile keyword in Java. Not being very
At work we have an application to play 2K (2048*1556px) OpenEXR film sequences. It
I'm working on a software project which several members are working from home and
I am currently working on a rather large project with a team distributed across

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.