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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:58:10+00:00 2026-05-15T21:58:10+00:00

My central repository is stored on an 8GB USB stick. I accidentally committed some

  • 0

My central repository is stored on an 8GB USB stick. I accidentally committed some big files, so the repository doesn’t fit on the stick anymore. Is there a way to correct this situation?

  • 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-15T21:58:11+00:00Added an answer on May 15, 2026 at 9:58 pm

    I voted up catchyifyoutry’s answer since he’s got the steps you’ll probably use, but here’s a handy list.

    First, though, a reminder. If you’ve already pushed this repository somewhere semi-public, and people have pulled the repository, then none of the tips below will work. When next they push and you pull you’ll get the original changesets back in their unmodified form. Your only recourse is to talk to each person who has a clone and ask them to delete it and re-clone. That said, on to the list:

    Ways to obliterate files you committed on accident

    • If you’ve not yet pulled or committed anything else: hg rollback will act as one level undo
    • If you’re willing to throw away the last N revisions: hg clone -r -N repo-with-too-much repo-with-N-fewer changesets # example: hg clone -r -2 big-repo small-repo
    • If your change was too long ago for either of those to be okay: hg convert --filemap myfilemap.txt too-big-repo new-repo

    In that last case myfilemap.txt has in it:

    exclude path/to/file/to/remove
    

    Notes:

    • the clone -r case technically asks for the minimal clone that could include revision tip-N, which if you have a branchy repo. Additionall pull -r lines (one per head) will be necessary to pull over other non-linear history.
    • with the hg convert solution the hashcode of every modified changeset and all of their descendants will be modified.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question assumes there's a blessed central repository that members of a team clone
I pushed some changes to our central git repository, and then immediately realized that
I have jar files that cannot be found on Maven Central repository. I would
Do artifacts ever expire on the Maven Central Repository? Is there a size limit
Is there any way to modify central repository's configuration to disallow any remote pushing
There is a central repository in CVS, and I would like to use it
I have a central mercurial repository, and have many folders and code in there.
I'm a .Net guy and used to csproj/vbproj files being the central repository for
I have successfully made, committed, and pushed changes to a central git repository. I
I've created a bare (central) repository on a windows machine. My colleagues and myself

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.