当前位置:网站首页>fatal: unsafe repository is owned by someone else 的解决方法
fatal: unsafe repository is owned by someone else 的解决方法
2022-07-02 14:34:00 【Ayka】
在 git clone https://github.com/riscv-collab/riscv-gnu-toolchain 後執行
cd riscv-gnu-toolchain
mkdir build && cd build
../configure --prefix=/opt/riscv32 --with-arch=rv32imc
sudo make -j8
後報錯:
fatal: unsafe repository is owned by someone else
即使根據提示執行了
git config --global --add safe.directory /home/ayka-tsuzuki/riscv-gnu-toolchain
添加 safe.directory 並執行
git config --list
確認已添加後仍然無效。執行
sudo chown -R ayka-tsuzuki .
更改文件夾所屬用戶也無效。最後删除克隆的倉庫,使用
git clone https://github.com/riscv/riscv-gnu-toolchain --recursive
命令(添加 --recursive 參數)重新克隆後,再次執行之前的命令 make,成功:
边栏推荐
- Federated Search: all requirements in search
- Route (II)
- 每天坚持20分钟go的基础二
- Fabric.js 自由绘制椭圆
- 篇9:XShell免费版安装
- Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
- Analysis of CPU surge in production environment service
- 提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
- Pycharm连接远程服务器
- Go operation redis
猜你喜欢
实现一个多进程并发的服务器
途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
Daily learning 2
提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
uniapp自动化测试学习
Penetrate the remote connection database through the Intranet
Design and implementation of car query system based on php+mysql
关于Flink框架窗口(window)函数最全解析
How kaggle uses utility script
由粒子加速器产生的反中子形成的白洞
随机推荐
Openharmony notes --------- (4)
测试框架TestNG的使用(二):testNG xml的使用
freemarker的使用
Do you know that there is an upper limit on the size of Oracle data files?
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
[Hongke technology sharing] how to test DNS server: DNS performance and response time test
String matching problem
数据湖(十一):Iceberg表数据组织与查询
uni-app中使用computed解决了tab切换中data()值显示的异常
快解析:轻松实现共享上网
buuctf-pwn write-ups (7)
STM32标准固件库函数名记忆(二)
Use of freemaker
Fabric.js 手动加粗文本iText
Penetrate the remote connection database through the Intranet
How kaggle uses utility script
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
mongodb的认识
Pycharm连接远程服务器
C语言高级用法--函数指针:回调函数;转换表