摘要: 一,git reset的功能: 该命令修改HEAD的位置,即将HEAD指向的位置改变为之前存在的某个版本, 说明: 修改后,push到远程仓库时需要使用“git push -f”提交更改 原因:因为我们本地库HEAD指向的版本比远程库的要旧 说明:架构森林是一个专注架构的博客, 网站:https:/ 阅读全文
posted @ 2020-02-17 20:17 刘宏缔的架构森林 阅读(702) 评论(0) 推荐(0)
摘要: 一,git stash的作用: 能够将所有未提交的修改(工作区和暂存区)保存至堆栈中,用于后续恢复当前工作目录 说明:架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com本文: https://blog.imgtouch.com/index.php/2023/05 阅读全文
posted @ 2020-02-17 20:03 刘宏缔的架构森林 阅读(491) 评论(0) 推荐(0)
摘要: 一,git的tag是什么? tag就是给commit起一个容易记忆容易理解的名字 说明:架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com本文: https://blog.imgtouch.com/index.php/2023/05/16/gittag-de-y 阅读全文
posted @ 2020-02-17 19:50 刘宏缔的架构森林 阅读(252) 评论(0) 推荐(0)
摘要: 一,git merge 与 git rebase的区别 1,git merge 例如: master分支合并dev分支,git将两个分支dev和master上的所有commit , 按照提交时间的先后顺序进行依次放到master分支上 2, git rebase操作实际上是将当前执行rebase分支 阅读全文
posted @ 2020-02-17 19:42 刘宏缔的架构森林 阅读(1219) 评论(0) 推荐(0)
摘要: 一,如何修改一个commit的注释? root@kubuntu:/data/git/clog# git commit --amend 说明:架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com本文: https://blog.imgtouch.com/index. 阅读全文
posted @ 2020-02-17 18:46 刘宏缔的架构森林 阅读(255) 评论(0) 推荐(0)
摘要: 一,查看本地centos的版本: [root@localhost lib]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) 说明:架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com本文: 阅读全文
posted @ 2020-02-16 22:41 刘宏缔的架构森林 阅读(388) 评论(0) 推荐(0)
摘要: 一,查看本地centos的版本: [root@localhost lib]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) 说明:架构森林是一个专注架构的博客,网站:https://blog.imgtouch.com本文:  阅读全文
posted @ 2020-02-16 22:24 刘宏缔的架构森林 阅读(297) 评论(0) 推荐(0)
摘要: 一,配置ip转发 [root@localhost sysctl.d]# sysctl -a | grep ip_forward net.ipv4.ip_forward = 1 说明:如果net.ipv4.ip_forward 的值为 1,不需要做修改 否则需要设置 说明:架构森林是一个专注架构的博客 阅读全文
posted @ 2020-02-16 21:08 刘宏缔的架构森林 阅读(1289) 评论(0) 推荐(0)
摘要: 一,docker的下载官网 https://download.docker.com/linux/ 说明:架构森林是一个专注架构的博客, 网站:https://blog.imgtouch.com 本文: https://blog.imgtouch.com/index.php/2023/05/16/ce 阅读全文
posted @ 2020-02-16 20:48 刘宏缔的架构森林 阅读(328) 评论(0) 推荐(0)
摘要: 一,firewalld的systemd管理命令 启动:systemctl start firewalld 关闭:systemctl stop firewalld 查看状态:systemctl status firewalld 开机禁用:systemctl disable firewalld 开机启用 阅读全文
posted @ 2020-02-13 17:25 刘宏缔的架构森林 阅读(3784) 评论(0) 推荐(1)