English 中文(简体)
这些隐藏的(......预先确定)档案中有哪些是我的格言?
原标题:What are all these hidden ( ._ prefixed) files that are in my git repo?
  • 时间:2012-04-25 20:52:07
  •  标签:
  • git

When I do a git status on my directory, it shows a bunch of untracked files that seem to be duplicates. The only difference is that all have a prefix of ._. For example: One of my untracked files that needs to be added would be... app/assets/stylesheets/categories.css and another file would display as app/assets/stylesheets/._categories.css.

是否有任何人知道这一点? 似乎没有关于Gite Hub的良好文件。

最佳回答

https://stackoverflow.com/a/600998/6309 ∗∗∗∗

如果在档案库中,你有另一个,即:foo,你在Mac,则在档案资料库/元数据上保存。

(详见“DS_Store, dot 我们强调(_),用于服务器和已宣布的Windows用户的资源)

>。 视窗XP提供并用于储存“盒子的原子特性,如方位或背景图像的选择。 ......

dot-unders分(_)file是微小浮游。 看来,当你利用Finder向非Mac系统移交档案时a 本案的Windows服务器将档案分为两部分:数据和资源。 当你将档案复制回Mac时,Finder再次将两条轨道合并起来。 窗户可以不使用资源,因此不需要,你可以删除,但是,它有许多在别人之后必须清理的矿石!

See also "Is there any way to prevent a Mac from creating dot underscore files?"

问题回答

如果您更新全球<代码>.gitignore (at C:/Users/user/.gitignore,或者在您的用户家名录上,你可以添加这一行文:

._*

这将防止出现你何时填写<代码>git status,并且不会通过<代码>git 添加——A。

这是我补充的,是为了防止各种作业系统将垃圾加到我们的后台。

# OS generated files #
######################
.DS_Store?
ehthumbs.db
._*
# Icon?
Thumbs.db

它们与<代码>git <>/code>per se无任何关系;它们重复了由SOS X创建的元数据文档。

Mac provides command line command which may be available with command line utilities free downloadable from App store . This cleans up ._ files. Command is $dot_clean





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签