我有一点困惑。我使用 Github.com 备份一个项目。由于我的文件太大,无法将其存储在 Github.com 上,因此我使用git large file storage. 现在我换了一台新计算机,并对git cloneGithub.com 上远程存储的存储库执行了操作。我还在刚刚克隆的存储库中安装git lfs并brew做了一个git lfs install。然而,我的大文件仍然是“指针文件”。当我运行我的项目时,它说这些文件丢失了。
我做了一个
git lfs fetch --all
Run Code Online (Sandbox Code Playgroud)
下载了一些东西。但它在哪里呢?git lfs移动到全新设置的全新计算机后,如何检索备份的文件?
我正在尝试将我的git存储库转换为git-lfs.我下载了bitbucket测试服务器,创建了一个存储库,并在repo和服务器的选项中启用了lfs.如果我调用git-lfs来跟踪"*.psd"文件,它可以正常工作.如果我推送.psd文件,它们存储在git lfs位置.问题是,如果我将一个现有的存储库(clientside)推入一个空的git-lfs存储库,那么这些文件不会存储在git-lfs存储中.但是,如果我之后推送另一个.psd文件,它工作正常.
你们有个好主意如何将我的回购转换为git-lfs吗?我必须保持历史等原样.我也看到了一些指南,但没有任何关于我的工作.我在看 git-lfs-migrate,另一个脚本和其他一些东西.没有任何东西可以将跟踪的文件推送到lfs目录.目录
谢谢你的协助 !
Frossy
当我试图将我的文件推入bitbucket repo(其中一些由git LFS跟踪,模式是*.uasset)时,我收到此错误(我已更改实际凭据---):
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
Pushing to https://---@bitbucket.org/---/---.git
Git LFS: (0 of 241 files) 0 B / 372.25 MB
Post https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/---/---.git/info/lfs/objects/batch: stopped after 3 redirects
Post https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/---/---.git/info/lfs/objects/batch: stopped after 3 redirects
Post https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/---/---.git/info/lfs/objects/batch: stopped after 3 redirects
error: failed to push some refs to 'https://---@bitbucket.org/---/---.git'
Completed with errors, see above.
Run Code Online (Sandbox Code Playgroud)
我不知道出了什么问题.你能建议我如何解决这个错误吗?
TFS 2015 Update 2带来了Git LFS支持,但是当我尝试将它与Brian Keller VS2015ALM虚拟机(升级到Update 2)一起使用时,我遇到了以下异常:
git-lfs/1.2.0 (GitHub; windows amd64; go 1.6.1; git 386c5d8)
git version 2.8.1.windows.1
$ git-lfs.exe smudge -- Image1.jpg
Error downloading object: Image1.jpg (968bda1e0a17e295e265311f93bc4e631e171
d776d51c6d7a43b52185c82631a)
Your user name must be of the form DOMAIN\user. It is currently brian%!(EXTRA st
ring=string)
goroutine 1 [running]:
github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
C:/Users/techn/go/src/github.com/github/git-lfs/lfs/errors.go:566 +0x87
github.com/github/git-lfs/commands.logPanicToWriter(0x1a42c0, 0xc082020020, 0x1b
54a0, 0xc0823ae1a0)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:195
+0xf87
github.com/github/git-lfs/commands.logPanic(0x1b54a0, 0xc0823ae1a0, 0x0, 0x0)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:159
+0x419
github.com/github/git-lfs/commands.handlePanic(0x1b54a0, 0xc0823ae1a0, 0x0, 0x0)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:134
+0x55
github.com/github/git-lfs/commands.LoggedError(0x1b54a0, 0xc0823ae1a0, 0xa25980,
0x21, 0xc082029c88, 0x2, 0x2)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:84 …Run Code Online (Sandbox Code Playgroud) 我正在为iOS开发人员开发一个作为Cocoapod分发的组件。我们已经启动并运行了多个版本,到目前为止,一切工作都非常顺利。
由于组件本身很大(它执行OCR,条形码扫描和其他一些重要功能),因此当我们包含字节码功能时,我们通过了github限制文件大小为100MB。我们通过将文件移动到git大文件存储中解决了该问题。
但是,在此之后,我们无法使用
pod trunk push
我们得到的错误如下:
Validating podspec
-> PPBlinkID (1.4.0)
- ERROR | file patterns: The `preserve_paths` pattern did not match any file.
Run Code Online (Sandbox Code Playgroud)
这表明在pod trunk中找不到git lfs中的文件。
是否可以将git lfs中有一些文件的cococapod推送到Pod trunk?
我有一个包含2个lfs跟踪文件的repoA。我像这样将那个仓库带入repoB
cd repoB
git fetch repoA somebranch
git checkout -b temp FETCH_HEAD
git rebase someotherbranch
Run Code Online (Sandbox Code Playgroud)
这将打印几行“正在应用:...”,然后
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
error: Your local changes to the following files would be overwritten by merge:
Assets/HappyFunTimes/HappyFunTimesCore/Server/Resources/HFTOSXServer.bytes
Please, commit your changes or stash them before you can merge.
Aborting
error: Failed to merge in the changes.
Patch failed at 0340 update server
The copy of the patch that failed is found …Run Code Online (Sandbox Code Playgroud) 我git-lfs在我的私有存储库上进行了设置,并且从命令行可以正常运行。
我将TeamCity构建代理设置为已git-lfs安装并初始化。但是,当我尝试通过TeamCity构建运行它时,该git-lfs pull命令将永远挂起,并且根本不会传输任何数据。我的任务管理器显示git-lfs.exe存在,但处于空闲状态。从代理的工作文件夹(在代理计算机上)进行手动测试时,git-lfs pull或git lfs pull成功下载所有大文件。
我的构建配置的git-lfs pull第一步是,并且在更新源代码后立即执行。
有谁知道为什么git-lfs pull通过TeamCity构建过程运行git-lfs pull与在构建代理内部的命令行上运行有何不同?
我正在使用TeamCity 10.0.2(42234),并且我的代理已更新。
我在Jenkins中使用git LFS时遇到了问题.我现在正在做的是
我们在Jenkins中分别使用了git插件和git-client插件,版本分别为3.3.0和2.4.2.
怎么了:
A.war - > a.jar(其原始大小为1234 kb,但它的速度为3 kb(指针文件的大小)
所以我的问题是:
我已经将Git LFS用于GitLab几个月了,没有任何问题,但最近推送文件时返回了以下错误:
$ git push origin master
Git LFS: (14 of 14 files) 8.88 MB / 8.88 MB
Counting objects: 54, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (49/49), done.
Writing objects: 100% (54/54), 5.42 KiB | 0 bytes/s, done.
Total 54 (delta 15), reused 0 (delta 0)
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To https://gitlab.com/<gitURL>.git
! [remote rejected] master -> master …Run Code Online (Sandbox Code Playgroud) 我有一个旧githost实例的存储库,我正在尝试将其迁移到gitlab.com.我使用他们的指示迁移,而是因为这个仓库使用LFS,我得到了一些错误,我无法弄清楚如何解决.这是我正在运行的命令
cd repo
git remote rename origin old-origin
git remote add origin git@gitlab.com:group/repo.git
git push -u origin --all
git push -u origin --tags
Run Code Online (Sandbox Code Playgroud)
以下是我从git第一个push命令获得的响应示例:
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To https://gitlab.com/group/repo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/group/repo.git'
Run Code Online (Sandbox Code Playgroud)
我尝试了建议的命令(git lfs push --all),该命令无效.我也尝试过git lfs push origin master,结果如下:
Uploading …Run Code Online (Sandbox Code Playgroud)