当前位置:网站首页>fatal: unsafe repository is owned by someone else 的解决方法
fatal: unsafe repository is owned by someone else 的解决方法
2022-07-02 11:21: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,成功:
边栏推荐
- socket(套接字)与socket地址
- Uniapp automated test learning
- Solving the longest subsequence with linear DP -- three questions
- kaggle如何使用utility script
- P1042 [noip2003 popularization group] Table Tennis
- PHP linked list creation and traversal
- taobao.logistics.dummy.send( 无需物流发货处理 )接口,淘宝店铺发货API接口,淘宝订单发货接口,淘宝r2接口,淘宝oAu2.0接口
- uniapp自动化测试学习
- OpenHarmony笔记-----------(四)
- Analysis of CPU surge in production environment service
猜你喜欢
A white hole formed by antineutrons produced by particle accelerators
How kaggle uses utility script
Pychart connects to the remote server
Yyds dry goods inventory software encryption lock function
Custom events, global event bus, message subscription and publishing, $nexttick
Fabric.js 缩放画布
STM32-DAC实验&高频DAC输出测试
Packet capturing tool Fiddler learning
The use of TestNG, the testing framework (II): the use of TestNG XML
< 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
随机推荐
Basic knowledge of QT original code
buuctf-pwn write-ups (7)
STM32库函数进行GPIO初始化
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
Custom events, global event bus, message subscription and publishing, $nexttick
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
PTA question bank== > complex four operations, one for one, examination seat number (7-73)
Threejs controller cube space basic controller + inertia control + flight control
uni-app中使用computed解决了tab切换中data()值显示的异常
字符串匹配问题
P1908 reverse sequence pair
STM32 library function for GPIO initialization
Development and design of animation surrounding mall sales website based on php+mysql
TeamTalk源码分析之win-client
Fabric.js 缩放画布
< 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
Do you know that there is an upper limit on the size of Oracle data files?
Use of swagger
Delete element (with transition animation)
uniapp自动化测试学习