Git Product home page Git Product logo

Comments (5)

marco-2023 avatar marco-2023 commented on August 23, 2024 3

We could (and probably should) remove then also from the history using git filter-repo or bfg https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository

from atomdb.

gabrielasd avatar gabrielasd commented on August 23, 2024

Also in relation to this change (separating package from DB) I think we should consider removing the db folders in this repository (or at least the content in them) from being tracked by git.
@msricher , @marco-2023 what do you think?

from atomdb.

gabrielasd avatar gabrielasd commented on August 23, 2024

The commit d75f912 removed the Slater DB files from datasets/slate/db

from atomdb.

msricher avatar msricher commented on August 23, 2024

I uploaded a copy of the AtomDB repo, with old db files removed from the git history: https://github.com/msricher/AtomDB_clean

I'll document what I did here. This makes use of the git-filter-repo package (at least that's the name on Arch).

  1. git log --all --name-only --pretty=format:%H -- ^'*.msg' | grep -E '*.msg$' > msg_files lists all of the files matching ^*.msg, by commit. There may be some duplicates due to multiple commits modifying the same files but that doesn't matter. I filtered out the lines containing the commit hashes with grep, and wrote everything to the file msg_files.
  2. for i in $(cat msg_files | xargs); do git filter-repo --invert-paths --path "$i"; done removes each of the files matched above from the git history.

Before I force-push this over the main repo, would either of you verify that the result in my repo looks correct? @gabrielasd @marco-2023

from atomdb.

gabrielasd avatar gabrielasd commented on August 23, 2024

This issue has been resolved as indicated by Michelle.

from atomdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.