From 80138b9d4febc1921684c0ab79742f037babdae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=9F=8E?= <2304508674@qq.com> Date: Wed, 25 Sep 2024 19:49:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test1.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test1.java b/test1.java index e69de29..a67cf81 100644 --- a/test1.java +++ b/test1.java @@ -0,0 +1,14 @@ +# 创建一个文件 +echo "Hello, world!" > hello.txt +git add . +git commit -m "Initial commit with v1" + +# 修改文件内容以创建v2 +echo "Hello, Git!" > hello.txt +git add . +git commit -m "Updated to v2" + +# 再次修改文件内容以创建v3 +echo "Hello, version control!" > hello.txt +git add . +git commit -m "Updated to v3" \ No newline at end of file