zoukankan      html  css  js  c++  java
  • git config

    $ git config --global --list

    user.name=
    user.email=

    core.autocrlf=true
    http.sslverify=false

    config 配置有system级别 global(用户级别) 和local(当前仓库)三个 设置先从system-》global-》local  底层配置会覆盖顶层配置 分别使用--system/global/local 可以定位到配置文件

    一、不同操系统下的换行符
    CR回车 LF换行
    Windows/Dos CRLF
    Linux/Unix LF
    MacOS CR
    二、解决方法

    打卡git bash,设置core.autocrlf和core.safecrlf(可不设置),建议设置autocrlf为input,safecrlf为true,同时设置你的Eclipse、IDEA等IDE的换行符为LF 。
    下面为参数说明,--global表示全局设置

    2.1、autocrlf

    #提交时转换为LF,检出时转换为CRLF
    git config --global core.autocrlf true

    #提交时转换为LF,检出时不转换
    git config --global core.autocrlf input

    #提交检出均不转换
    git config --global core.autocrlf false

    2.2、safecrlf

    #拒绝提交包含混合换行符的文件
    git config --global core.safecrlf true

    #允许提交包含混合换行符的文件
    git config --global core.safecrlf false

    #提交包含混合换行符的文件时给出警告
    git config --global core.safecrlf warn

    删除config

    git config   --global --unset core.autocrlf

    执行Git命令时出现各种 SSL certificate problem 的解决办法

    git config --global http.sslVerify false 

    执行Git命令时出现各种 SSL certificate problem 的解决办法

  • 相关阅读:
    sqlmap参数设置
    SQL注入
    SQL注入基本原理
    信息收集(shodan的使用)
    CDN
    2020软件工程个人作业06——软件工程实践总结作业
    问题清单
    2020软件工程作业05
    2020软件工程作业00——问题清单
    软件工程第三次作业
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/10281269.html
Copyright © 2011-2022 走看看