一、在windows中安装git

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

二、在centos系统安装git

2.1 配置base源和epel源

# cat /etc/yum.repos.d/aliBase.repo
[aliBase]
name=aliBase
baseurl=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/
enabled=
gpgcheck=
gpgkey=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-$releasever
 
# cat /etc/yum.repos.d/aliEpel.repo
[aliEpel]
name=aliEpel
baseurl=https://mirrors.aliyun.com/epel/$releasever\Server/$basearch/
enabled=
gpgcheck=

2.2 yum命令下载

# yum install -y git

2.3查看是否下载成功

# git --version

三、初始化配置

3.1设置用户名跟邮箱

$ git config --global user.name "lzw"
$ git config --global user.email "tyutlizhewei@163.com"

3.2查看全局配置

$ git config --global --list

最新文章

  1. qt中添加Q_OBJECT报错的问题
  2. LSD-SLAM深入学习(4)-非ROS改造
  3. Python 10 —— 杂
  4. [转]CSS编码规范
  5. mysql Host ‘XXXXXX’ is blocked because of many connection errors
  6. PHP笔试题汇总
  7. Preemption Context Switches 和 Synchronization Context Switches
  8. Robotframework-Appium系列:登录操作
  9. [国嵌攻略][182][Sqlite嵌入式数据库移植]
  10. C# winform页面可视化设计打开失败,提示未能加载程序集或他的一个依赖项,dll错误
  11. Golang时间格式化
  12. 【合集】Hadoop 合集
  13. 简单探讨spring整合mybatis时sqlSession不需要释放关闭的问题
  14. Centos socket TCP代码
  15. day05_雷神_函数进阶
  16. php类模块引擎PDO操作MySQL数据库简单阐述
  17. man-pages项目包含文档的说明
  18. git使用(一)----git安装
  19. java 内存 线程 类 vm分析工具
  20. 《ASP.NET 1200例》ref关键字与out关键字

热门文章

  1. nodejs 简单的搭建一个服务器
  2. __file__, sys._getframe().f_lineno 当前文件的行号
  3. 二、Python基础
  4. 线对 Line pairs、LP(分辨率cy/mm)
  5. case when then else end 累加
  6. 【Hibernate】---【注解】多对多
  7. bigdata数据分析(二):关闭防火墙&安装telnet
  8. 精读《Optional chaining》
  9. Linux 自学shell
  10. js if 判断的使用