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

边栏推荐
猜你喜欢

Pychart connects to the remote server
![[to be continued] [UE4 notes] l5ue4 model import](/img/6b/d3083afc969043dbef1aeb4fccfc99.jpg)
[to be continued] [UE4 notes] l5ue4 model import

uniapp自动化测试学习

实现一个多进程并发的服务器

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

测试框架TestNG的使用(二):testNG xml的使用

Yolov3 & yolov5 output result description

跨服务器数据访问的创建链接服务器方法

Do you know that there is an upper limit on the size of Oracle data files?

Pycharm连接远程服务器
随机推荐
docker mysql
Fabric. Keep the original level when JS element is selected
STM32 library function for GPIO initialization
taobao.trade.memo.add( 对一笔交易添加备注 )接口,淘宝店铺插旗接口,淘宝订单插旗API接口,oAuth2.0接口
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute
2、const 型指针
NLA自然语言分析,让数据分析更智能
1. Editing weapon VIM
Use of swagger
3、函数指针和指针函数
4、数组指针和指针数组
C crystal report printing
< schéma de développement de la machine d'exercice oral > machine d'exercice oral / trésor d'exercice oral / trésor de mathématiques pour enfants / lecteur LCD de calculatrice pour enfants IC - vk1621
每天坚持20分钟go的基础二
3. Function pointers and pointer functions
docker mysql
Delete element (with transition animation)
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
< schematic diagram of oral arithmetic exercise machine program development> oral arithmetic exercise machine / oral arithmetic treasure / children's math treasure / children's calculator LCD LCD driv