每次我进入我的命令窗口
git lfs install
Run Code Online (Sandbox Code Playgroud)
我得到的消息是git:'lfs'不是git命令.见'git --help'.
我试着寻找解决方案,但没有一个答案是明确的.有人可以解释清楚如何解决这个问题?
尽管在SO上有很多建议,在Git和GitHub的文档上,以及我遇到过的一些Gists,我仍然在尝试使用git LFS时遇到了麻烦.
我的问题如下:
执行必要的步骤后:
git lfs install
git lfs track "<file of interest>"
git commit
Run Code Online (Sandbox Code Playgroud)
我仍然没有跟踪任何文件.如果我表演了
git lfs ls-files
Run Code Online (Sandbox Code Playgroud)
它会是空白的.如果我继续执行推送,事务将失败,说文件太大.(正如所料,但我很绝望.)
我们将在我正在工作的公司开始一个新项目.这是一个C++和C#的软件开发项目,在三个地点有大约6-8名开发人员.
这里较旧的项目使用SVN和自定义问题跟踪器,但计划切换到TFS.对于这个新项目,我想说服管理层使用GitHub Enterprise而不是TFS.我对TFS没有太多经验,但我已经使用了很多git,并且有一些GitHub经验.
我特别询问完整的体验,即版本控制,问题/错误跟踪和Wiki的集成.这里有一些相关的问题,但它们只关注版本控制方面.所以:
所有开发都将在使用Visual Studio的Windows机器上进行(2010年,可能是2012年).
我有大文件,并试图使用新的Git LFS系统.
我发布了这个问题 - Git lfs - "这超出了GitHub的文件大小限制为100.00 MB"
爱德华汤姆森正确地确定了我的问题 - 你不能追溯使用LFS.他建议我使用BFG LFS支持
这在一定程度上起了作用.绝大多数文件都被更改了.但是,有一些未经修改的受保护提交.
在这些受保护的提交中,有些超过100.00MB,因此导致github出现远程:错误
Protected commits
-----------------
These are your protected commits, and so their contents will NOT be altered:
* commit c7cd871b (protected by 'HEAD') - contains 165 dirty files :
- Directions_api/Applications/LTDS/Cycling/Leisure/l__cyc.csv (147.3 KB)
- Directions_api/Applications/LTDS/Cycling/Work/w_cyc.csv (434.0 KB)
- ...
WARNING: The dirty content above may be removed from other commits, but as
the *protected* commits still use it, it will STILL exist in your repository. …
Run Code Online (Sandbox Code Playgroud) 根据git rm文档,
--cached
Use this option to unstage and remove paths only from the index.
Working tree files, whether modified or not, will be left alone.
Run Code Online (Sandbox Code Playgroud)
但是根据这个资源, unstaging文件完成了
git reset HEAD <file>
Run Code Online (Sandbox Code Playgroud)
有什么不同?有吗?
我的本地分支不会上传,因为掌握,作为错误输出状态,"下载/ ue4-test-8.zip为363.08 MB,这超过了100.00 MB GitHub的文件大小限制为"我已经删除此文件,还没有任何提交我让被拒绝.
我怎样才能解决这个问题并重新推回这个回购?
这是我的输出日志:
~\Documents\GitHub\mryamz.github.io [master ?6 +0 ~1 -0 !]> git push
Counting objects: 42, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (28/28), done.
Writing objects: 100% (42/42), 360.48 MiB | 668.00 KiB/s, done.
Total 42 (delta 18), reused 36 (delta 13)
remote: Resolving deltas: 100% (18/18), completed with 6 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. …
Run Code Online (Sandbox Code Playgroud)