随笔 - 216  文章 - 0 评论 - 2 阅读 - 24万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

01 2022 档案
清除 Git 仓库的所有提交记录,成为一个新的干净仓库
摘要:切换到新的分支 git checkout --orphan latest_branch 缓存所有文件(除了.gitignore中声明排除的) git add -A 提交跟踪过的文件 git commit -am "first commit" 删除 main 分支 git branch -D main 阅读全文
posted @ 2022-01-25 11:31 青叶煮酒 阅读(82) 评论(0) 推荐(0) 编辑
C# 调用 Linux 系统命令
摘要:示例代码如下: string chmodCmdStr = "chmod +x ./AEConsole_GatewayService"; Process process = new Process(); process.StartInfo.UseShellExecute = false; proces 阅读全文
posted @ 2022-01-21 13:24 青叶煮酒 阅读(2177) 评论(0) 推荐(1) 编辑
C# 判断操作系统是 Windows 还是 Linux
摘要:示例代码如下: if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { // Windows 相关逻辑 } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { // 阅读全文
posted @ 2022-01-11 11:08 青叶煮酒 阅读(3390) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示