是git" lfs"和"钩子"文件夹应该在.git文件夹之外?

时间:2018-05-26 19:06:37

标签: git git-lfs

我开始在Unity项目中使用git-lfs。安装git-lfs并提交一些资源文件后,一切似乎都运行正常。现在我注意到我的工作目录中有名为.gitgit status的文件夹不在$ git status On branch master Your branch is up to date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage) deleted: Assets/Scripts/PlayerController/FOVKick.cs deleted: Assets/Scripts/PlayerController/LerpControlledBob.cs Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: Assets/Scripts/PlayerController/FOVKick.cs.meta deleted: Assets/Scripts/PlayerController/LerpControlledBob.cs.meta Untracked files: (use "git add <file>..." to include in what will be committed) hooks/ lfs/ 目录中。当我做## Unity ## *.cs diff=csharp text *.cginc text *.shader text *.mat merge=unityyamlmerge eol=lf *.anim merge=unityyamlmerge eol=lf *.unity merge=unityyamlmerge eol=lf *.prefab merge=unityyamlmerge eol=lf *.physicsMaterial2D merge=unityyamlmerge eol=lf *.physicsMaterial merge=unityyamlmerge eol=lf *.asset merge=unityyamlmerge eol=lf *.meta merge=unityyamlmerge eol=lf *.controller merge=unityyamlmerge eol=lf ## git-lfs ## # Image *.jpg filter=lfs diff=lfs merge=lfs -text *.jpeg filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text *.gif filter=lfs diff=lfs merge=lfs -text *.psd filter=lfs diff=lfs merge=lfs -text *.ai filter=lfs diff=lfs merge=lfs -text # Audio *.mp3 filter=lfs diff=lfs merge=lfs -text *.wav filter=lfs diff=lfs merge=lfs -text *.ogg filter=lfs diff=lfs merge=lfs -text # Video *.mp4 filter=lfs diff=lfs merge=lfs -text *.mov filter=lfs diff=lfs merge=lfs -text # 3D Object *.FBX filter=lfs diff=lfs merge=lfs -text *.fbx filter=lfs diff=lfs merge=lfs -text *.blend filter=lfs diff=lfs merge=lfs -text *.obj filter=lfs diff=lfs merge=lfs -text # Other *.a filter=lfs diff=lfs merge=lfs -text *.exr filter=lfs diff=lfs merge=lfs -text *.tga filter=lfs diff=lfs merge=lfs -text *.pdf filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.dll filter=lfs diff=lfs merge=lfs -text *.unitypackage filter=lfs diff=lfs merge=lfs -text *.aif filter=lfs diff=lfs merge=lfs -text *.ttf filter=lfs diff=lfs merge=lfs -text *.rns filter=lfs diff=lfs merge=lfs -text *.reason filter=lfs diff=lfs merge=lfs -text *.lxo filter=lfs diff=lfs merge=lfs -text git时,将这些文件夹中的文件列为未跟踪的新文件。这不是它应该如何工作的,对吧?什么可能导致这个以及我应该检查什么?

这是输出:

{{1}}

这是项目根目录中的.gitattributes文件:

{{1}}

1 个答案:

答案 0 :(得分:0)

找到了罪魁祸首。

它是由IDE使用不安装git-lfs的不同git可执行文件引起的。