当前位置:   article > 正文

Git(一): 安装和基本配置_git安装及配置教程

git安装及配置教程

目录

1、安装 git

2、配置

2.1 查看环境配置

2.2 配置用户和邮箱

2.3 生成公钥

2.4 记住密码


1、安装 git

官网:https://git-scm.com/

全程默认安装:

2、配置

作为代码提交、下拉、注释时的记录。配置信息存在于文件中 .gitconfig 中。

2.1 查看环境配置

2.2 配置用户和邮箱

  1. $ git config --global user.name "gitxxx"
  2. $ git config --global user.email "xxx@qq.com"

 

2.3 生成公钥

$ ssh-keygen -t rsa -C "email"

 

 

2.4 记住密码

git config --global credential.helper store

 3、配色方案

修改系统盘下的 .minttyrc 文件:C:\Users\LENOVO\.minttyrc

  1. Locale=zh_CN
  2. Charset=UTF-8
  3. Columns=84
  4. Rows=24
  5. Font=JetBrains Mono Bold
  6. FontHeight=11
  7. Term=xterm-256color
  8. CursorType=block
  9. CursorBlinks=yes
  10. Transparency=low
  11. BoldAsFont=yes
  12. AllowBlinking=no
  13. Scrollbar=none
  14. ScrollbackLines=10000
  15. ClickTargetMod=off
  16. ComposeKey=shift
  17. ForegroundColour=248,248,242
  18. BackgroundColour=39,40,34
  19. CursorColour=255,255,255
  20. Black=39,40,34
  21. BoldBlack=117,113,94
  22. Red=249,38,114
  23. BoldRed=204,6,78
  24. Green=166,226,46
  25. BoldGreen=122,172,24
  26. Yellow=255,255,81
  27. Blue=144,255,255
  28. Magenta=174,129,255
  29. Cyan=161,239,228
  30. BoldColour=255,255,255
  31. White=248,248,242
  32. BlinkColour=255,255,255
  33. CtrlShiftShortcuts=yes

字体设置需另外安装:Jetbrains Mono

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号