当前位置:网站首页>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,成功:

边栏推荐
- 途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
- 线性dp求解 最长子序列 —— 小题三则
- There is no solution to the decryption error of the remote user 'sa' and the service master password mapped from the remote server 'to the local user' (null) /sa '
- <口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
- 抓包工具fiddler学习
- Golang 快速生成数据库表的 model 和 queryset
- 每天坚持20分钟go的基础二
- How many knowledge points can a callable interface have?
- The conference on the growth of all things was held in Hangzhou, and dangbei was selected into the top 100 list of future unicorns in China in 2022
- uniapp自动化测试学习
猜你喜欢

STM32 library function for GPIO initialization

Stm32-dac Experiment & high frequency DAC output test

Development and design of animation surrounding mall sales website based on php+mysql

buuctf-pwn write-ups (7)

每日学习2

The use of TestNG, the testing framework (II): the use of TestNG XML

QT new project

Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred

每日学习3

Who is better, Qianyuan projection Xiaoming Q1 pro or Jimi new play? Which configuration is higher than haqu K1?
随机推荐
PyQt5_ Qscrollarea content is saved as a picture
数据库连接池和数据源
Fabric.js 缩放画布
<口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
Dangbei projection 4K laser projection X3 Pro received unanimous praise: 10000 yuan projector preferred
一张图彻底掌握prototype、__proto__、constructor之前的关系(JS原型、原型链)
每日学习3
Fabric.js 上划线、中划线(删除线)、下划线
[development environment] Dell computer system reinstallation (download Dell OS recovery tool | use Dell OS recovery tool to make USB flash disk system | install system)
The use of TestNG, the testing framework (II): the use of TestNG XML
docker mysql
PTA题库 ===>复数四则运算,一帮一,考试座位号(7-73)
Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
NLA自然语言分析,让数据分析更智能
socket(套接字)与socket地址
没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法
Custom events, global event bus, message subscription and publishing, $nexttick
PHP linked list creation and traversal
php链表创建和遍历
Fabric.js 手动加粗文本iText