Giter Site home page Giter Site logo

"fds forget" feature proposal about fds HOT 5 OPEN

dagshub avatar dagshub commented on September 18, 2024
"fds forget" feature proposal

from fds.

Comments (5)

guysmoilov avatar guysmoilov commented on September 18, 2024 1

@indweller I think you also need to run some form of dvc gc after dvc remove.
And sure, thank you!

from fds.

guysmoilov avatar guysmoilov commented on September 18, 2024 1

Interesting potentially relevant project: https://rtyley.github.io/bfg-repo-cleaner/

from fds.

indweller avatar indweller commented on September 18, 2024

Hi @guysmoilov
I looked at the git part of this problem. There are two parts:
a) If you have not yet committed the file yet, then a simple git restore --staged <file> will do.
b) But if you want to untrack a file that has already been tracked and committed, then it's tricky because doing git rm --cached will remove the file from others' systems (locally) when they do a git pull (You also have to list the file in .gitignore). If we do git update-index --assume-unchanged, then it won't show the file in unstaged changes, but I think it continues to remain in the repo.

from fds.

guysmoilov avatar guysmoilov commented on September 18, 2024

@indweller Thanks for the research!
Yes, making git forget a committed file is daly next to impossible for a distributed repo.
As the first line in the issue suggests, I think we should focus on git add and dvc add - fds forget is IMO much easier to remember than git restore --staged <file> and also should handle removing the file from DVC tracking.

from fds.

indweller avatar indweller commented on September 18, 2024

Ok so for the git part it can do git restore and the for the DVC part it can do dvc remove (https://dvc.org/doc/user-guide/how-to/stop-tracking-data). Can I work on this issue?

from fds.

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.