创建原创教学远端
$ git -c init.defaultBranch=main init --bare origin.git
Initialized empty Git repository in <练习根目录>/git-lab/origin.git/
退出码：0

创建维护副本
$ git -c init.defaultBranch=main init writer
Initialized empty Git repository in <练习根目录>/git-lab/writer/.git/
退出码：0

仅配置教学作者
$ git config user.name BoxAI Demo
退出码：0

仅配置教学邮箱
$ git config user.email demo@example.invalid
退出码：0

加入原创文件
$ git add notice.txt
退出码：0

保存教学初版
$ git commit -m 初版地点
[main (root-commit) 041d89d] 初版地点
 1 file changed, 1 insertion(+)
 create mode 100644 notice.txt
退出码：0

关联本机教学远端
$ git remote add origin ../origin.git
退出码：0

发布教学初版到本机远端
$ git push -u origin main
branch 'main' set up to track 'origin/main'.
To ../origin.git
 * [new branch]      main -> main
退出码：0

取得干净副本
$ git clone origin.git reader-clean
Cloning into 'reader-clean'...
done.
退出码：0

取得待修改副本
$ git clone origin.git reader-dirty
Cloning into 'reader-dirty'...
done.
退出码：0

查看本地改动
$ git status --short
 M notice.txt
退出码：0

提交更新版
$ git add notice.txt
退出码：0

保存教学更新
$ git commit -m 更新地点
[main 61467d9] 更新地点
 1 file changed, 1 insertion(+), 1 deletion(-)
退出码：0

送到本机教学远端
$ git push
To ../origin.git
   041d89d..61467d9  main -> main
退出码：0

干净副本快进更新
$ git pull --ff-only
Updating 041d89d..61467d9
Fast-forward
 notice.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From <练习根目录>/git-lab/origin
   041d89d..61467d9  main       -> origin/main
退出码：0

冲突本地修改时停止更新
$ git pull --ff-only
Updating 041d89d..61467d9
From <练习根目录>/git-lab/origin
   041d89d..61467d9  main       -> origin/main
error: Your local changes to the following files would be overwritten by merge:
	notice.txt
Please commit your changes or stash them before you merge.
Aborting
退出码：1

再次核对原备注仍在
$ git status --short
 M notice.txt
退出码：0

公共仓库状态
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
退出码：0

公共仓库版本
$ git log -1 --oneline
7fd1a60 Merge pull request #6 from Spaceghost/patch-1
退出码：0

公共仓库无新提交检查
$ git pull --ff-only
Already up to date.
退出码：0

公共仓库文件列表
$ git ls-files
README
退出码：0
