From 07f3f01b26ee347a8cc886607169b30a1f270ee9 Mon Sep 17 00:00:00 2001 From: aiapple <17561545+ai-apple@user.noreply.gitee.com> Date: Mon, 21 Sep 2026 21:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20push=5Fdemo=5F20260921.txt?= =?UTF-8?q?=EF=BC=88=E6=8E=A8=E9=80=81=E7=BB=83=E4=B9=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push_demo_20260921.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 push_demo_20260921.txt diff --git a/push_demo_20260921.txt b/push_demo_20260921.txt new file mode 100644 index 0000000..0aa2066 --- /dev/null +++ b/push_demo_20260921.txt @@ -0,0 +1,13 @@ +Git 推送练习 - 20260921 + +本文件为「克隆仓库 + 新增文件 + 推送」练习新增。 + +完整操作流程: +1. git clone 克隆远程仓库到本地 +2. 在工作区新增文件 +3. git add 把文件加入暂存区 +4. git commit 提交到本地仓库 +5. git pull --rebase 同步远程最新改动(多人协作必做) +6. git push 推送到远程仓库 + +要点:多人协作时,push 前必须先同步远程,否则会被拒绝。