Git之旅(1):安装git
2024-09-05 19:54:56
一、在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
最新文章
- qt中添加Q_OBJECT报错的问题
- LSD-SLAM深入学习(4)-非ROS改造
- Python 10 —— 杂
- [转]CSS编码规范
- mysql Host ‘XXXXXX’ is blocked because of many connection errors
- PHP笔试题汇总
- Preemption Context Switches 和 Synchronization Context Switches
- Robotframework-Appium系列:登录操作
- [国嵌攻略][182][Sqlite嵌入式数据库移植]
- C# winform页面可视化设计打开失败,提示未能加载程序集或他的一个依赖项,dll错误
- Golang时间格式化
- 【合集】Hadoop 合集
- 简单探讨spring整合mybatis时sqlSession不需要释放关闭的问题
- Centos socket TCP代码
- day05_雷神_函数进阶
- php类模块引擎PDO操作MySQL数据库简单阐述
- man-pages项目包含文档的说明
- git使用(一)----git安装
- java 内存 线程 类 vm分析工具
- 《ASP.NET 1200例》ref关键字与out关键字
热门文章
- nodejs 简单的搭建一个服务器
- __file__, sys._getframe().f_lineno 当前文件的行号
- 二、Python基础
- 线对 Line pairs、LP(分辨率cy/mm)
- case when then else end 累加
- 【Hibernate】---【注解】多对多
- bigdata数据分析(二):关闭防火墙&;安装telnet
- 精读《Optional chaining》
- Linux 自学shell
- js if 判断的使用