上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 103 下一页
摘要: 全局 cat t.json { "env_AB":{ "DB_PATH":"/bin/data", "DB_NAME":"aa.db", "RULE_DB":[ { "RULE_DB_1":"bb_rules1.db", "RULE_DB_2":"bb_rules2.db", "RULE_DB_3" 阅读全文
posted @ 2023-08-23 17:48 悟透 阅读(4312) 评论(0) 推荐(0)
摘要: ### 一、一行显示 commit-ID 分支名 提交说明 ```bash branch_name=`git branch --show-current`; curr_commit_ID=`git log -1 --format="%H %s"`; echo "$branch_name $curr_ 阅读全文
posted @ 2023-08-19 10:55 悟透 阅读(197) 评论(0) 推荐(0)
摘要: 一、显示本地分支 git branch 二、显示当前所在分支 某些时候,我们只想显示,当前分支名 git branch --show-current 老版本不支持此命令 参考、来源: https://git-scm.com/docs/git-branch/zh_HANS-CN 阅读全文
posted @ 2023-08-19 10:07 悟透 阅读(397) 评论(0) 推荐(0)
摘要: ### 一、 ```bash git branch -v 或 git branch -vv ``` ![image](https://img2023.cnblogs.com/blog/597729/202308/597729-20230819095433915-193300772.png) 参考、来 阅读全文
posted @ 2023-08-19 09:56 悟透 阅读(50) 评论(0) 推荐(0)
摘要: ### 一、修改一条提交: ```bash git commit --amend --author="作者 " --no-edit git push --force ``` -f, --force 强制提交,否则服务端认为你是有误的修改 参考、来源: https://blog.csdn.net/sh 阅读全文
posted @ 2023-08-19 09:48 悟透 阅读(727) 评论(0) 推荐(0)
摘要: select命令语句,默认只能输入一个选择项。但有时候需要让用户输入多个 选项,就需要加for循环处理多选项了。 ### 一、示例代码 ```bash #!/usr/bin/env bash choices=( 'one' 'two' 'three' 'four' 'five' ) # sample 阅读全文
posted @ 2023-08-18 14:03 悟透 阅读(576) 评论(0) 推荐(0)
摘要: 默认安装版本 一、添加 git 官方源 sudo add-apt-repository ppa:git-core/ppa 根据提示 回车继续 二、更新仓库包索引 sudo apt update 不更新,即便 git 官方有更新,你也搜索不到 三、查看有什么软件可以更新 apt list --upgr 阅读全文
posted @ 2023-08-18 13:06 悟透 阅读(1186) 评论(0) 推荐(0)
摘要: ### 测试 cmmit log ![image](https://img2023.cnblogs.com/blog/597729/202308/597729-20230816175404933-81591067.png) ## 命令: | 命令 | 解释说明 | 官方中文说明 | 官方英文说明 | 阅读全文
posted @ 2023-08-16 18:11 悟透 阅读(438) 评论(0) 推荐(0)
摘要: ### shell 变量值传递给 read 变量 ```bash read selChoices 参考: https://qa.1r1g.com/sf/ask/2128520901/ 阅读全文
posted @ 2023-08-16 16:19 悟透 阅读(97) 评论(0) 推荐(0)
摘要: vmware虚拟机 安装好 ubuntu 系统后,需要文件拖动、复制、粘贴,还有共享物理机的文件。 **纠正一个说法:** > 网上说 ubuntu 系统自带 open-vm-tools 工具。这个"自带"的意思是 ubuntu 提供 open-vm-tools 工具,而不是说 ubuntu 系统里 阅读全文
posted @ 2023-08-14 18:10 悟透 阅读(36306) 评论(0) 推荐(6)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 103 下一页