有人可以通过GITHUB存储库从我本地系统收集文件吗?我看到DS_Store文件可能会打开此可能性

发布于 2025-02-11 04:15:22 字数 400 浏览 2 评论 0原文

今天,我进入了一个github存储库,因为完成了一个训练营以来一个月左右的工作。这是一个个人项目,我基本上刚刚播种了一些数据库表,并上传了一两个图像,并启动了一个显示这些数据库的应用程序。
当我今天继续前进时,在公共图像中,文件夹是个人资料照片,也是我的 Passport Visa 的照片。我不记得添加那些!而且看不到这甚至是偶然的,尽管我想我想。
我可以在Github上看到我的新秀代码可以使我留下一些东西,让某人从我本地系统中获取这些文件?我不确定这将如何工作,但在Mac上读取了一些有关.ds_store文件的信息,那里也有一个未承诺的文件。
任何人都可以放弃见解吗?是否可能/可能有人扫描我的文件并出于任何原因抓住这些图像?
我删除了照片和ds_store文件。
谢谢

Today I went into a GitHub repository I haven't worked on in a month or so since completing a bootcamp. It is a personal project where I have basically just seeded some database tables and had uploaded an image or two and started a React app displaying those.
When I went on today, in the public images folder was a profile photo and also a photo of my passport visa. I don't recall adding those! and can't see that it would've even been an accident, though maybe I suppose.
Could having my fairly rookie code available to see on GitHub have led to me leaving something open for someone to get those files from my local system? I'm not sure how that would work but did read a little about .DS_Store files on Mac and there was one of those uncommitted in there too.
Can anyone shed any insight? Is it possible/likely someone scanned my files and grabbed those images for whatever reason?
I deleted the photos and ds_store file.
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不及他 2025-02-18 04:15:22

这就是为什么在git commit>:仔细检查我要提交的内容之前,我总是做git状态

除非有人可以直接访问您的机器,否则除非您,否则没有其他人可以添加人事文件。

请记住:删除文件仅将其从最近的提交中删除,而不是从过去的提交中删除。
只有 git filter-repo (python--基于)将允许您将其从过去的所有提交中删除,这会更改历史记录,并需要git推动-force(如果您是唯一在存储库上工作的人)。

That is why I always do a git status, before a git commit: to double-check what I am about to commit.

Unless someone has direct access to your machine, nobody else should have been able to add a personnel file but you.

And remember: deleting the file only removes it from the most recent commit, not from past commits.
Only a tool like git filter-repo (python-based) would allow you to remove it from all past commits, which changes the history and require a git push --force (not a big deal if you are the only one working on the repository).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文