redis
Redis 基础 https://www.jianshu.com/p/2a9c21bfeca8
Redis 主从复制 https://www.jianshu.com/p/7c43cdb6bfc7
Redis 集群 https://www.jianshu.com/p/faf342b9f01b
#安装升级gcc
yum -y install centos-release-scl && yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils && scl enable devtoolset-9 bash
# 修改工作区文件
echo 3 > a.txt
# 添加工作区当前目录下所有文件的修改到 暂存区
git add .
# 提交暂存区的文件到 master 分支
git commit -m "add 3 to a.txt"
# 查看目前的提交版本状态
git log --graph --oneline --decorate --all
# 输出如下内容 HEAD 表示当前所在的版本
* e9817e5 (HEAD, master) add 3 to a.txt
* 1df67f6 add 2 to a.txt
* 15f0139 add a.txt
# 回退版本到 1df67f6
git reset --hard 1df67f6
# 验证版本是否切换
git log --graph --oneline --decorate --all
# 输出如下内容
* 1df67f6 (HEAD, master) add 2 to a.txt
* 15f0139 add a.txt
1. git branch 查看分支
2. git checkout 切换分支
3. git clone 克隆远程仓库到本地,相当于 copy
4. git pull 拉取远程仓库到本地仓库, 相当于再次 copy 并覆盖