zoukankan      html  css  js  c++  java
  • git 报错及解决

    • 报错:fatal: refusing to merge unrelated histories====
      解决办法:git pull加上参数,如:git pull –allow-unrelated-histories

    • 报错:
      fatal: Unable to create '/Users/cag2050/Documents/eclipse_jee_workspace/spring_boot_demo/.git/index.lock': File exists.
      Another git process seems to be running in this repository, e.g.
      an editor opened by 'git commit'. Please make sure all processes
      are terminated then try again. If it still fails, a git process
      may have crashed in this repository earlier:
      remove the file manually to continue.
      原因:
      进程的同步互斥管理,是有资源上锁机制的。
      解决:
      删除提示的文件。

    • 报错:ECDSA key fingerprint is xxx
      $ ssh root@192.168.1.1
      The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
      ECDSA key fingerprint is SHA256:8bZUeFxyoxL9oYhc5aAZjgSZ5CT1oGYEYoehN/OLEYY.
      Are you sure you want to continue connecting (yes/no)?

    因为这是第一次登录,ssh无法判断远程的服务端是否是正确的,在这里如果有人中间截获了你的登录请求,并且模拟ssh服务端的话,你的密码就会泄漏(中间人攻击),所以ssh会询问你:远程服务端的指纹是:xxxx,是不是确定登录。
    选择yes,ssh会把该服务端的信息存到本地的~/.ssh/known_hosts文件中,那么下次登录就不会再询问了。
    这时候服务端会使用公钥对A字符串加密,然后传输到客户端,客户端使用私钥进行解密,得到的A字符串,然后对A字符串进行md5加密,服务端判断传回来的字符串是否正确,如果正确,直接登录。
  • 相关阅读:
    log4net GetLogger(source).IsInfoEnabled = false
    nginx配置
    mysql数据库备份
    按序号批量更新某个字段
    MySql 执行 DELETE/UPDATE时,报 Error Code: 1175错误
    ef学习记录
    vue-cli3实行路径联想
    GitHub分支创建及合并
    Git本地分支和远程分支关联
    uniapp(三)
  • 原文地址:https://www.cnblogs.com/cag2050/p/6874001.html
Copyright © 2011-2022 走看看