Skip to content

Re-init repo to remove historical zip blobs from git history #243

Closed

Description

@timenick

Background

After #213 merges, the runtime check rule zip files (~312 MB) will be removed from git tracking. However, historical commits still contain these blobs, keeping the repo clone size large.

Plan

Re-init the repo and squash all history into a single commit to eliminate historical blobs.

git checkout main && git pull origin main
rm -rf .git
git init && git add -A && git commit -m "initial commit"
git remote add origin https://github.com/microsoft/ModelKit.git
git branch -M main && git push origin main --force

Prerequisites

Impact

  • All commit history, git blame, and git log will be lost
  • Existing merged PR links remain but commit SHAs will be invalid
  • Repo clone size will drop significantly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions