摘要: repo forall -c 'echo $REPO_PROJECT':得到所有仓库的名称 repo forall -c 'echo $REPO_PATH': 得到所有仓库的本地路径 repo forall -c 'echo $REPO_REMOTE': 得到远程仓库的名称 repo forall 阅读全文
posted @ 2025-07-18 14:20 山村放羊娃 阅读(58) 评论(0) 推荐(0)
摘要: echo -e "\e[31m红色文字\e[0m" echo -e "\e[1;32m粗体绿色文字\e[0m" echo -e "\e[4;34m带下划线的蓝色文字\e[0m" echo -e "\e[41;37m白色文字红色背景\e[0m" echo -e "\e[1;4;33m粗体带下划线的黄色 阅读全文
posted @ 2025-07-17 16:06 山村放羊娃 阅读(11) 评论(0) 推荐(0)
摘要: class Example { static void main(String[] args) { Student st = new Student(); st.StudentID = 1; // println(st.DisplayMarks()); // println(st.DisplayTo 阅读全文
posted @ 2025-07-15 16:07 山村放羊娃 阅读(7) 评论(0) 推荐(0)
摘要: class Example{ static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("first string"); list.add("second string"); lis 阅读全文
posted @ 2025-07-15 14:41 山村放羊娃 阅读(4) 评论(0) 推荐(0)
摘要: class Example{ static void main(String[] args) { String sample = "hello world"; println(sample[4]); println(sample[-1]); // 包头不包尾 println(sample[1..2] 阅读全文
posted @ 2025-07-14 15:39 山村放羊娃 阅读(5) 评论(0) 推荐(0)
摘要: 如果想要在vscode里面运行groovy脚本,请先安装code runner插件 阅读全文
posted @ 2025-07-14 15:30 山村放羊娃 阅读(11) 评论(0) 推荐(0)
摘要: Gitlab 权限级别: GitLab中的权限级别从低到高包括: Guest(访客) Reporter(报告者) Developer(开发者) Maintainer(维护者) Owner(所有者) 通常,Developer及以上级别的成员都有merge权限,但具体取决于项目的保护分支设置。 阅读全文
posted @ 2025-07-10 10:46 山村放羊娃 阅读(15) 评论(0) 推荐(0)
摘要: 面向对象: class Student{ private int StudentID; private String StudentName; void setStudentID(int pID){ StudentID = pID; } void setStudentName(String pNam 阅读全文
posted @ 2025-07-07 17:17 山村放羊娃 阅读(4) 评论(0) 推荐(0)
摘要: try catch finally class Demo{ static void main(String[] args){ try{ File file = new File("./Example.txt"); FileReader fr = new FileReader(file); }catc 阅读全文
posted @ 2025-07-07 16:21 山村放羊娃 阅读(26) 评论(0) 推荐(0)
摘要: + 一次或者多次 * 零次或者多次 ? 零次或一次 [] 范围 {} 匹配前面字符的次数 阅读全文
posted @ 2025-07-07 16:10 山村放羊娃 阅读(4) 评论(0) 推荐(0)