zoukankan      html  css  js  c++  java
  • fatal: bad config line 1 in file .git/config

    1. 出现的第一个错误,可能是因为git代码是从别人的电脑和账号拷贝过来的

    fatal: bad config line 1 in file .git/config

    2. 出现的第二个错误,删除原来的git数据,重新整了一份就出现这个错误。

    fatal: bad revision 'HEAD'

    3. 以上两个的解决办法是,重新配置一下git即可

    git config --global user.name "qiaohaiquan90"

    git config --global user.email "qhq@lierda.com"
    git init

    4. 下一个问题,说是这个文件太小了,百度说是软链接消失了

    /lib/gcc/arm-none-eabi/7.2.1/liblto_plugin.so: file too short
    collect2: error: ld returned 1 exit status

    进入文件目录看下是否真的不见了软链接,似乎确实不见了,那么需要重新建立软链接

    重新建立软链接,问题解决。

    oot@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# rm liblto_plugin.so
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# rm liblto_plugin.so.0
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s l
    libgcc.a                libgcov.a               liblto_plugin.so.0.0.0  lto1                    lto-wrapper
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s l
    libgcc.a                libgcov.a               liblto_plugin.so.0.0.0  lto1                    lto-wrapper
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s l
    libgcc.a                libgcov.a               liblto_plugin.so.0.0.0  lto1                    lto-wrapper
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s liblto_plugin.so.0.0.0 liblto_plugin.so.0
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s liblto_plugin.so.0 liblto_plugin.so
    root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ls -l
    total 63836
    -rwxr-xr-x 1 root root 20586504 8月   3 10:24 cc1
    -rwxr-xr-x 1 root root 21921832 8月   3 10:24 cc1plus
    -rwxr-xr-x 1 root root   569144 8月   3 10:24 collect2
    -rwxr-xr-x 1 root root     1656 8月   3 10:24 crtbegin.o
    -rwxr-xr-x 1 root root      708 8月   3 10:24 crtend.o
    -rwxr-xr-x 1 root root      592 8月   3 10:24 crtfastmath.o
    -rwxr-xr-x 1 root root      760 8月   3 10:24 crti.o
    -rwxr-xr-x 1 root root      824 8月   3 10:24 crtn.o
    drwxr-xr-x 2 root root     4096 8月   3 10:24 hard
    drwxr-xr-x 2 root root     4096 8月   3 10:24 include
    drwxr-xr-x 2 root root     4096 8月   3 10:24 include-fixed
    drwxr-xr-x 3 root root     4096 8月   3 10:24 install-tools
    -rwxr-xr-x 1 root root  1595556 8月   3 10:24 libgcc.a
    -rwxr-xr-x 1 root root    49676 8月   3 10:24 libgcov.a
    lrwxrwxrwx 1 root root       18 8月   3 10:49 liblto_plugin.so -> liblto_plugin.so.0
    lrwxrwxrwx 1 root root       22 8月   3 10:48 liblto_plugin.so.0 -> liblto_plugin.so.0.0.0
    -rwxr-xr-x 1 root root    76640 8月   3 10:24 liblto_plugin.so.0.0.0
    -rwxr-xr-x 1 root root 19627152 8月   3 10:24 lto1
    -rwxr-xr-x 1 root root   880560 8月   3 10:24 lto-wrapper
    drwxr-xr-x 3 root root     4096 8月   3 10:24 plugin
    drwxr-xr-x 8 root root     4096 8月   3 10:24 thumb
  • 相关阅读:
    matlab中用来批量读取的dir函数
    cat 函数应用
    线性移不变系统
    为什么低频信息描述了图像在光滑部位的整体灰度信息,而高频部分则反映了图像在边缘、噪声等细节方面的表现?
    红灯检测宇视科技专利分析与总结2
    红灯检测宇视科技专利分析与总结1
    matlab中冒号的用法
    第一篇博文,大橙子的博客生涯要开始啦
    Spring Boot和Shiro整合
    Spring Boot + Redis使用短信平台发送验证码(腾讯云短信平台)
  • 原文地址:https://www.cnblogs.com/429512065qhq/p/13424866.html
Copyright © 2011-2022 走看看