git 常用配置

  • windows 开启大小写敏感
1
git config --global  core.ignorecase false
  • 配置CA证书
1
git config --global http.sslcainfo "/etc/pki/git/ca.crt"

忽略ssl验证

1
git config --global http.sslverify false
  • 提交时转换为LF(Linux 结束符),检出(拉取)时不转换(建议配置,推荐配置)
1
git config --global core.autocrlf input
  • 配置用户信息
1
2
git config user.name zhangsan
git config user.email zsadmin@admin.com
  • 格式化git log的时间(Date: Tue May 5 15:24:15 2020 +0800 —> Date: 2020-05-05 15:24:15 +0800
1
git config --global log.date format:'%Y-%m-%d %H:%M:%S %z'
打赏
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2018-2024 Outsrkem
  • 访问人数: | 浏览次数:

      请我喝杯咖啡吧~

      支付宝
      微信