错误:无法获取linaro swg/arm-trusted-firmware.git
我正试图按照以下步骤在linux Ubuntu操作系统上构建OP-TEE 在步骤3中,使用命令“$repo sync-j4--no clone bundle”,出现如下错误消息: 错误:无法获取linaro swg/arm-trusted-firmware.git(GitError:--未启用强制同步;无法覆盖本地工作树。如果您对可能丢失工作树的git元数据感到满意,请使用错误:无法获取linaro swg/arm-trusted-firmware.git,git,Git,我正试图按照以下步骤在linux Ubuntu操作系统上构建OP-TEE 在步骤3中,使用命令“$repo sync-j4--no clone bundle”,出现如下错误消息: 错误:无法获取linaro swg/arm-trusted-firmware.git(GitError:--未启用强制同步;无法覆盖本地工作树。如果您对可能丢失工作树的git元数据感到满意,请使用repo sync--force sync arm trusted firmware继续。) 线程9中的异常: 如何获取li
repo sync--force sync arm trusted firmware
继续。)
线程9中的异常:
如何获取linaro swg/arm-trusted-firmware.git
感谢如上所述,在:
看来repo会跟踪它已初始化的存储库。因此,如果您独立于repo创建了一个存储库,然后将该现有存储库的条目添加到repo清单中,repo sync将阻塞并向您显示以下消息:
error.GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync mydirectory` to proceed.
原来“git元数据”是指mydirectory中的整个.git
目录。因此,现有本地存储库中的任何分支、任何藏品和任何东西都将被销毁。也不能求助于reflog 一旦运行了
repo--force sync
,repo将在进一步的repo sync调用中接受存储库
使用--force sync
的另一种方法可能是使用--force break
(或者简单地说是-f
),当任何目录无法同步时,这种方法就会继续。但我没有尝试,如果我们假设回购协议没有进入它没有创建的目录,我甚至不知道这有什么意义 无论如何。。。首先备份您的本地回购 如上所述,在: 看来repo会跟踪它已初始化的存储库。
因此,如果您独立于repo创建了一个存储库,然后将该现有存储库的条目添加到repo清单中,repo sync将阻塞并向您显示以下消息:
error.GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync mydirectory` to proceed.
原来“git元数据”是指mydirectory中的整个.git
目录。因此,现有本地存储库中的任何分支、任何藏品和任何东西都将被销毁。也不能求助于reflog 一旦运行了
repo--force sync
,repo将在进一步的repo sync调用中接受存储库
使用--force sync
的另一种方法可能是使用--force break
(或者简单地说是-f
),当任何目录无法同步时,这种方法就会继续。但我没有尝试,如果我们假设回购协议没有进入它没有创建的目录,我甚至不知道这有什么意义 无论如何。。。首先备份您的本地回购