Comments (5)
@indweller I think you also need to run some form of dvc gc
after dvc remove
.
And sure, thank you!
from fds.
Interesting potentially relevant project: https://rtyley.github.io/bfg-repo-cleaner/
from fds.
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.
@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.
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)
- fds add doesn't work when the user is inside a sub folder HOT 4
- Remove hardcoded dvc installation version
- Documentation request: how to migrate from git and dvc hooks (pre-commit package) to fds HOT 1
- Documentation request: using fds with git repo already using dvc HOT 4
- fds clone need extra argument folder location HOT 2
- fds fails to pull dvc on windows HOT 3
- Test issue
- Update Obsolete Dependencies HOT 1
- fds add takes a long time in a large repo
- fds add wizard – add ignored (`i`) files to `.dvcignore` too HOT 1
- Add "skip" option to fds add wizard
- Error in command description for fds clone
- Detect missing authentication for dvc
- Auto update FDS only tries with `pip` and not `pip3` HOT 2
- Implement `fds -V` or `fds --version`
- fsd clone for non-DVC repos throws an error
- DVC and Git services don't correctly detect the repo root directory
- Extension-based logic for `fds add` HOT 1
- fds init HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fds.