上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页
摘要: CNI 插件 定义: Container Network Interface 容器通用接口 K8S 中可选的 CNI 插件如下: Flannel 较流行 Calico 性能棒,比Flannel快1% Canal Weave 阅读全文
posted @ 2022-03-26 09:59 明月照江江 阅读(53) 评论(0) 推荐(0) 编辑
摘要: Thread有一个成员 ThreadLocal.ThreadLocalMap threadLocals = null; 在创建ThreadLocal时会创建这个对象 private T setInitialValue() { T value = initialValue(); Thread t = 阅读全文
posted @ 2022-03-26 09:57 明月照江江 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Java8 Optional 总结 模型类样例 @Data private static class User { private String name; private String age; } 用例1 @Test(expected = NoSuchElementException.class 阅读全文
posted @ 2022-03-26 09:56 明月照江江 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Git git 文件的三种状态(区) 工作区 叫 workArea 又叫work Directory 暂存区 叫 Stage 又叫 Index graph LR subgraph 本地仓库 Repository end subgraph 暂存区 Stage-->|git commit|Reposit 阅读全文
posted @ 2022-03-26 09:47 明月照江江 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 当由于修改了Git 的密码导致 pull 等操作报错时,比如报以下错误: fatal: Authentication failed for 'http://xxxxxxxxxxxxxxxxxx.git/' 可以使用以下命令重置密码 git config --system --unset creden 阅读全文
posted @ 2022-03-26 09:46 明月照江江 阅读(2315) 评论(0) 推荐(0) 编辑
摘要: 1. git log -g 查看已commit的信息 2. 根据commit信息找到对应的commitID 3. 执行一下命令来创建新的分支 ### 1. 方法一:创建一个基于commitId的分支,但不切过去 git branch new_branch_name commitId ### 2. 方 阅读全文
posted @ 2022-03-26 09:46 明月照江江 阅读(2013) 评论(0) 推荐(0) 编辑
摘要: git stash 1. git stash save "message" ​ 执行存储,并添加备注信息(直接git stash 也可以,但没有备注信息) 2. git stash list ​ 查看存储列表 stash@{0}: On Topic/V2.5: gitignore和mybatis日志 阅读全文
posted @ 2022-03-26 09:45 明月照江江 阅读(49) 评论(0) 推荐(0) 编辑
摘要: git revert git revert 是一种创建一次新的commit 来回退某次或某几次commit的一种方式 命令 // 创建一个新的commit,这个commit会删除(下面)commit-id的内容,但会在log中保留这个commit-id git revert commit-id // 阅读全文
posted @ 2022-03-26 09:44 明月照江江 阅读(2392) 评论(0) 推荐(1) 编辑
摘要: git reset git 的重置操作 有三种模式:hard、mixed(默认)、soft 1. hard 用法 hard会重置stage区和工作区,和移动代码库上HEAD 和branch的指针所指向的位置,所有的都没了(干净了),如果工作区或stage区有修改,则全部舍弃了 //重置到与代码库HE 阅读全文
posted @ 2022-03-26 09:43 明月照江江 阅读(129) 评论(0) 推荐(0) 编辑
摘要: git rebase 合并多个commit 方法 在开发过程中,有时一个任务会分几次commit提交,这样可能对于有些分支要cherry pick时会比较麻烦,这是我们可以通过git rebase 将几个commit合并为一个commit,再推送到远端 git rebase -i 这里指的是通过交互 阅读全文
posted @ 2022-03-26 09:40 明月照江江 阅读(1088) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页