上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 99 下一页
摘要: ### 一、一行显示 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 悟透 阅读(167) 评论(0) 推荐(0)
摘要: 一、显示本地分支 git branch 二、显示当前所在分支 某些时候,我们只想显示,当前分支名 git branch --show-current 老版本不支持此命令 参考、来源: https://git-scm.com/docs/git-branch/zh_HANS-CN 阅读全文
posted @ 2023-08-19 10:07 悟透 阅读(365) 评论(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 悟透 阅读(40) 评论(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 悟透 阅读(712) 评论(0) 推荐(0)
摘要: select命令语句,默认只能输入一个选择项。但有时候需要让用户输入多个 选项,就需要加for循环处理多选项了。 ### 一、示例代码 ```bash #!/usr/bin/env bash choices=( 'one' 'two' 'three' 'four' 'five' ) # sample 阅读全文
posted @ 2023-08-18 14:03 悟透 阅读(560) 评论(0) 推荐(0)
摘要: 默认安装版本 一、添加 git 官方源 sudo add-apt-repository ppa:git-core/ppa 根据提示 回车继续 二、更新仓库包索引 sudo apt update 不更新,即便 git 官方有更新,你也搜索不到 三、查看有什么软件可以更新 apt list --upgr 阅读全文
posted @ 2023-08-18 13:06 悟透 阅读(1130) 评论(0) 推荐(0)
摘要: ### 测试 cmmit log ![image](https://img2023.cnblogs.com/blog/597729/202308/597729-20230816175404933-81591067.png) ## 命令: | 命令 | 解释说明 | 官方中文说明 | 官方英文说明 | 阅读全文
posted @ 2023-08-16 18:11 悟透 阅读(405) 评论(0) 推荐(0)
摘要: ### shell 变量值传递给 read 变量 ```bash read selChoices 参考: https://qa.1r1g.com/sf/ask/2128520901/ 阅读全文
posted @ 2023-08-16 16:19 悟透 阅读(89) 评论(0) 推荐(0)
摘要: vmware虚拟机 安装好 ubuntu 系统后,需要文件拖动、复制、粘贴,还有共享物理机的文件。 **纠正一个说法:** > 网上说 ubuntu 系统自带 open-vm-tools 工具。这个"自带"的意思是 ubuntu 提供 open-vm-tools 工具,而不是说 ubuntu 系统里 阅读全文
posted @ 2023-08-14 18:10 悟透 阅读(35451) 评论(0) 推荐(6)
摘要: ### 一、-nt 判断file1是否比file2新 ```bash ["/data/file1" -nt "/data/file2" ] ``` ### 二、-ot 判断file1是否比file2旧 ```bash ["/data/file1" -ot "/data/file2" ] ``` 参考 阅读全文
posted @ 2023-08-12 15:34 悟透 阅读(86) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 99 下一页