当前位置:网站首页>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,成功:
边栏推荐
- OpenCV调用USB摄像头的点滴
- Fabric. Keep the original level when JS element is selected
- Stm32-dac Experiment & high frequency DAC output test
- Golang quickly generates model and queryset of database tables
- Golang 快速生成数据库表的 model 和 queryset
- Threejs controller cube space basic controller + inertia control + flight control
- TeamTalk源码分析之win-client
- NLA natural language analysis realizes zero threshold of data analysis
- Methods of software testing
- Fabric.js 上划线、中划线(删除线)、下划线
猜你喜欢
A white hole formed by antineutrons produced by particle accelerators
PyQt5_ Qscrollarea content is saved as a picture
Yyds dry goods inventory software encryption lock function
联合搜索:搜索中的所有需求
2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect
Custom events, global event bus, message subscription and publishing, $nexttick
Uniapp automated test learning
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
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 '
[development environment] StarUML tool (download software | StarUML installation | StarUML creation project)
随机推荐
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
Essential elements of science fiction 3D scenes - City
socket(套接字)与socket地址
OpenHarmony笔记-----------(四)
Fabric. JS free drawing ellipse
NLA natural language analysis realizes zero threshold of data analysis
Go operation redis
Adhere to the foundation of 20 minutes go every day II
C crystal report printing
Yyds dry goods inventory software encryption lock function
PyQt5_ Qscrollarea content is saved as a picture
[development environment] 010 editor tool (tool download | binary file analysis template template installation | shortcut key viewing and setting)
STM32 standard firmware library function name memory (II)
Fabric. JS dynamically set font size
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
联合搜索:搜索中的所有需求
Packet capturing tool Fiddler learning
Contrôleur pour threejs cube Space Basic Controller + Inertial Control + Flight Control
2. Const pointer
C语言高级用法--函数指针:回调函数;转换表