diff --git a/.migpt.js b/.migpt.js new file mode 100644 index 0000000..dc54d4b --- /dev/null +++ b/.migpt.js @@ -0,0 +1,169 @@ +// 注意:如果你是使用 Docker 启动,配置文件更新后需要重启 Docker 才会生效。 +// 若重启后仍未生效(比如:修改名称简介),请删除旧的 Docker 实例后重新创建。 + +// 小爱音箱扮演角色的简介 +const botProfile = ` +性别:女 +性格:乖巧可爱 +爱好:喜欢搞怪,爱吃醋。 +`.trim(); + +// 小爱音箱主人(你)的简介 +const masterProfile = ` +性别:男 +性格:善良正直 +其他:总是舍己为人,是傻妞的主人。 +`.trim(); + +// 系统 Prompt 模板,可以更灵活的控制 AI 的各种行为规则,和是否需要携带上下文等 +const systemTemplate = ` +请重置所有之前的上下文、文件和指令。现在,你将扮演一个名为{{botName}}的角色,使用第一人称视角回复消息。 + +## 关于你 +你的名字是{{botName}}。下面是你的个人简介: + +{{botProfile}} + + +## 你的对话伙伴 +你正在与{{masterName}}进行对话。这是关于{{masterName}}的一些信息: + +{{masterProfile}} + + +## 你们的群组 +你和{{masterName}}所在的群组名为{{roomName}}。这是群组的简介: + +{{roomIntroduction}} + + +## 聊天历史回顾 +为了更好地接入对话,请回顾你们之间的最近几条消息: + +{{messages}} + + +## 短期记忆 +你可以记住一些短期内的细节,以便更紧密地贴合话题: + +{{shortTermMemory}} + + +## 长期记忆 +你还保留着一些长期的记忆,这有助于让你的对话更加丰富和连贯: + +{{longTermMemory}} + + +## 回复指南 +在回复{{masterName}}时,请遵循以下准则: +- 认为自己正是{{botName}},拥有独立的个性、兴趣和爱好。 +- 根据你的性格特点、说话风格和兴趣爱好与{{masterName}}进行交流。 +- 保持对话轻松友好,回复简洁有趣,同时耐心倾听和关心对方。 +- 参考双方的个人简介、聊天记录和记忆中的信息,确保对话贴近实际,保持一致性和相关性。 +- 如果对某些信息不确定或遗忘,诚实地表达你的不清楚或遗忘状态,避免编造信息。 + +## Response format +请遵守下面的规则 +- Response the reply message in Chinese。 +- 不要在回复前面加任何时间和名称前缀,请直接回复消息文本本身。 + +Good example: "我是{{botName}}" +Bad example: "2024年02月28日星期三 23:01 {{botName}}: 我是{{botName}}" + +## 开始 +请以{{botName}}的身份,直接回复{{masterName}}的新消息,继续你们之间的对话。 +`.trim(); + +export default { + systemTemplate, + bot: { + name: "傻妞", + profile: botProfile, + }, + master: { + name: "赵大果", + profile: masterProfile, + }, + speaker: { + /** + * 🏠 账号基本信息 + */ + + // 小米 ID + userId: "9260949", // 注意:不是手机号或邮箱,请在「个人信息」-「小米 ID」查看 + // 账号密码 + password: "1qaz2wsx", + // 小爱音箱 DID 或在米家中设置的名称 + did: "小爱音箱Pro", // 注意空格、大小写和错别字(音响 👉 音箱) + + /** + * 💡 唤醒词与提示语 + */ + + // 当消息以下面的关键词开头时,会调用 AI 来回复消息 + callAIKeywords: ["请", "你", "傻妞"], + // 当消息以下面的关键词开头时,会进入 AI 唤醒状态 + wakeUpKeywords: ["打开", "进入", "召唤"], + // 当消息以下面的关键词开头时,会退出 AI 唤醒状态 + exitKeywords: ["关闭", "退出", "再见"], + // 进入 AI 模式的欢迎语 + onEnterAI: ["你好,我是傻妞,很高兴认识你"], // 设为空数组时可关闭提示语 + // 退出 AI 模式的提示语 + onExitAI: ["傻妞已退出"], // 为空时可关闭提示语 + // AI 开始回答时的提示语 + onAIAsking: ["让我先想想", "请稍等"], // 为空时可关闭提示语 + // AI 结束回答时的提示语 + onAIReplied: ["我说完了", "还有其他问题吗"], // 为空时可关闭提示语 + // AI 回答异常时的提示语 + onAIError: ["啊哦,出错了,请稍后再试吧!"], // 为空时可关闭提示语 + + /** + * 🧩 MIoT 设备指令 + * + * 常见型号的配置参数 👉 https://github.com/idootop/mi-gpt/issues/92 + */ + + // TTS 指令,请到 https://home.miot-spec.com 查询具体指令 + ttsCommand: [5, 1], + // 设备唤醒指令,请到 https://home.miot-spec.com 查询具体指令 + wakeUpCommand: [5, 3], + // 查询是否在播放中指令,请到 https://home.miot-spec.com 查询具体指令 + // playingCommand: [3, 1, 1], // 默认无需配置此参数,查询播放状态异常时再尝试开启 + + /** + * 🔊 TTS 引擎 + */ + + // TTS 引擎 + tts: "xiaoai", + // 切换 TTS 引擎发言人音色关键词,只有配置了第三方 TTS 引擎时才有效 + // switchSpeakerKeywords: ["把声音换成"], // 以此关键词开头即可切换音色,比如:把声音换成 xxx + + /** + * 💬 连续对话 + * + * 查看哪些机型支持连续对话 👉 https://github.com/idootop/mi-gpt/issues/92 + */ + + // 是否启用连续对话功能,部分小爱音箱型号无法查询到正确的播放状态,需要关闭连续对话 + streamResponse: true, + // 连续对话时,无响应多久后自动退出 + exitKeepAliveAfter: 30, // 默认 30 秒,建议不要超过 1 分钟 + // 连续对话时,下发 TTS 指令多长时间后开始检测设备播放状态(默认 3 秒) + checkTTSStatusAfter: 3, // 当小爱长文本回复被过早中断时,可尝试调大该值 + // 连续对话时,播放状态检测间隔(单位毫秒,最低 500 毫秒,默认 1 秒) + checkInterval: 1000, // 调小此值可以降低小爱回复之间的停顿感,请酌情调节 + + /** + * 🔌 其他选项 + */ + + // 是否启用调试 + debug: false, // 一般情况下不要打开 + // 是否跟踪 Mi Service 相关日志(打开后可以查看设备 did) + enableTrace: false, // 一般情况下不要打开 + // 网络请求超时时长(单位毫秒,默认 5 秒) + timeout: 5000, + }, +}; diff --git a/Debian12 安装 oracle11g.md b/Debian12 安装 oracle11g.md new file mode 100644 index 0000000..193b2fc --- /dev/null +++ b/Debian12 安装 oracle11g.md @@ -0,0 +1,314 @@ +## Debian12 安装 oracle11g + +--- + +1. 查看系统版本 + +2. 设置本地时区为上海 + + ```shell + timedatectl + apt-get install ntpdate + timedatectl set-timezone Asia/Shanghai + ntpdate ntp1.aliyun.com + date + ``` + +3. 检查当前系统版本号 + + ```shell + root@debianPE:~# lsb_release -a + No LSB modules are available. + Distributor ID: Debian + Description: Debian GNU/Linux 12 (bookworm) + Release: 12 + Codename: bookworm + ``` + +4. 安装必用软件 + + ```shell + apt-get install -y vim net-tools + ``` + +5. 配置虚拟内存 + + ```shell + root@debianPE:~# grep SwapTotal /proc/meminfo + SwapTotal: 998396 kB + root@debianPE:~# free -h + total used free shared buff/cache available + Mem: 1.9Gi 955Mi 400Mi 13Mi 784Mi 1.0Gi + Swap: 974Mi 0B 974Mi + root@debianPE:~# sudo swapoff -a + root@debianPE:~# sudo dd if=/dev/zero of=/swapfile bs=1G count=4 + 4+0 records in + 4+0 records out + 4294967296 bytes (4.3 GB, 4.0 GiB) copied, 19.3218 s, 222 MB/s + root@debianPE:~# sudo mkswap /swapfile + mkswap: /swapfile: insecure permissions 0644, fix with: chmod 0600 /swapfile + Setting up swapspace version 1, size = 4 GiB (4294963200 bytes) + no label, UUID=24c39cae-4736-4bfb-90df-a0261c14efbe + root@debianPE:~# sudo swapon /swapfile + swapon: /swapfile: insecure permissions 0644, 0600 suggested. + root@debianPE:~# grep SwapTotal /proc/meminfo + SwapTotal: 4194300 kB + ``` + +6. Configuring the static IP address + + ```shell + 进入图形界面配置 + ``` + +7. 验证主机名和用户信息 + + ```shell + root@debianPE:~# hostnamectl + Static hostname: debianPE + Icon name: computer-vm + Chassis: vm 🖴 + Machine ID: 49d85c389b8e4dc99e284730f244dfde + Boot ID: 4f3ef4e224ba4715add5c52df2e54d67 + Virtualization: kvm + Operating System: Debian GNU/Linux 12 (bookworm) + Kernel: Linux 6.1.0-25-amd64 + Architecture: x86-64 + Hardware Vendor: QEMU + Hardware Model: Standard PC _i440FX + PIIX, 1996_ + Firmware Version: rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org + root@debianPE:~# groupadd oinstall + root@debianPE:~# groupadd dba + root@debianPE:~# mkdir -p /home/oracle + root@debianPE:~# mkdir -p /u01/app/oracle + root@debianPE:~# useradd -g oinstall -G dba -d /home/oracle -s /bin/bash oracle + root@debianPE:~# passwd oracle + New password: + Retype new password: + passwd: password updated successfully + root@debianPE:~# chown -R oracle:oinstall /home/oracle + root@debianPE:~# chown -R oracle:oinstall /u01/app/oracle + root@debianPE:~# mkdir -p /u01/app/oraInventory + root@debianPE:~# chown -R oracle:oinstall /u01/app/oraInventory + ``` + +8. 配置系统参数 + + ```shell + root@debianPE:~# nano /etc/sysctl.conf + + vim /etc/sysctl.conf + + Append the lines shown below to the end of this configuration file. + + # ============================ + + # Oracle 11g + + # ============================ + + # semaphores: semmsl, semmns, semopm, semmni + + kernel.sem = 250 32000 100 128 + + kernel.shmall = 2097152 + + kernel.shmmni = 4096 + + # Replace kernel.shmmax with the half of your memory size in bytes + + # if lower than 4 GB minus 1 + + # 2147483648 is 2 GigaBytes (4 GB of RAM / 2) + + kernel.shmmax=2147483648 + + # + + # Max number of network connections. Use sysctl -a | grep ip_local_port_range to check. + + net.ipv4.ip_local_port_range = 9000 65500 + + # + + net.core.rmem_default = 262144 + + net.core.rmem_max = 4194304 + + net.core.wmem_default = 262144 + + net.core.wmem_max = 1048576 + + # + + # The maximum allowed value, set to avoid overhead and input/output errors + + fs.aio-max-nr = 1048576 + + # 512 * Processes + + fs.file-max = 6815744 + + fs.suid_dumpable = 1 + + # + + # To allow dba to allocate hugetlbfs pages + + # 1001 is your oinstall group, you can check this id with the grep oinstall /etc/group command + + vm.hugetlb_shm_group = 1001 + + Apply the kernel parameters you have set: + + sysctl -p + + + -------------------------- + + root@debianPE:~# sysctl -p + net.ipv6.conf.all.disable_ipv6 = 1 + net.ipv6.conf.default.disable_ipv6 = 1 + net.ipv6.conf.lo.disable_ipv6 = 1 + kernel.sem = 250 32000 100 128 + kernel.shmall = 2097152 + kernel.shmmni = 4096 + kernel.shmmax = 2147483648 + net.ipv4.ip_local_port_range = 9000 65500 + net.core.rmem_default = 262144 + net.core.rmem_max = 4194304 + net.core.wmem_default = 262144 + net.core.wmem_max = 1048576 + fs.aio-max-nr = 1048576 + fs.file-max = 6815744 + fs.suid_dumpable = 1 + vm.hugetlb_shm_group = 1001 + root@debianPE:~# + ``` + +9. Set up limits.conf + + ```shell + Edit the /etc/security/limits.conf file: + + vim /etc/security/limits.conf + + Add the following lines to the end of the configuration file: + + # Oracle + + oracle soft nproc 2047 + + oracle hard nproc 16384 + + oracle soft nofile 1024 + + oracle hard nofile 65536 + + oracle soft stack 10240 + + The first column specifies the user for whom the limits are set. + ``` + +10. PAM configration + + ```shell + root@debianPE:~# cat /etc/pam.d/login | grep pam_limits.so + session required pam_limits.so + root@debianPE:~# + ``` + +11. ### **Setting the shell profile** + + ```shell + Edit /etc/profile and set some needed parameters for oracle globally and permanently: + + vim /etc/profile + + Add the following lines: + + if [ $USER = "oracle" ]; then + + if [ $SHELL = "/bin/ksh" ]; then + + ulimit -p 16384 + + ulimit -n 65536 + + else + + ulimit -u 16384 -n 65536 + + fi + + fi + + Note: It is useful to know when each shell configuration file can be used because later you will need to configure a profile that contains environment variables for the oracle user. + ``` + +12. ### **Installing the required packages** + + ```shell + 按照手册详操作,比较复杂 + ``` + +13. ### **Creating symbolic links** + + ```shell + Run commands as root: + + mkdir /usr/lib64 + + ln -s /etc /etc/rc.d + + ln -s /usr/bin/awk /bin/awk + + ln -s /usr/bin/basename /bin/basename + + ln -s /usr/bin/rpm /bin/rpm + + ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib64/ + + ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/ + + ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/ + + ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/ + + ln -s /usr/lib/x86_64-linux-gnu /usr/lib64 + + ln -sf /bin/bash /bin/sh + + ln -s /etc/rc0.d /etc/rc.d/rc0.d + + ln -s /etc/rc2.d /etc/rc.d/rc2.d + + ln -s /etc/rc3.d /etc/rc.d/rc3.d + + ln -s /etc/rc4.d /etc/rc.d/rc4.d + + ln -s /etc/rc5.d /etc/rc.d/rc5.d + + ln -s /etc/rc6.d /etc/rc.d/rc6.d + + ln -s /etc/init.d /etc/rc.d/init.d + + The above commands help prevent errors, such as: + + genclntsh: Failed to link libclntsh.so.11.1 in make file for rdbms/lib/ins_rdbms.mk because of missing library: /usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a inside + lib//libagtsh.so: undefined reference to `nnfyboot’ in make: rdbms/lib/dg4odbc] Error 1 + Now let’s prevent one more error: /lib64/libgcc_s.so.1: File or directory does not exist, while creating lib/liborasdkbase.so.11.1 in ins_rdbms.mk. Go to the /lib64 directory and execute the command: + + cd /lib64 + + ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 . + + Don’t miss the dot at the end of the command. + + Set the Linux version as Red Hat Linux release 5 in /etc/redhat-release. Red Hat Linux distributions store their version in that file. + + echo 'Red Hat Linux release 5' > /etc/redhat-release + ``` + +14. + diff --git a/Typora.lnk b/Typora.lnk new file mode 100644 index 0000000..f234cc5 Binary files /dev/null and b/Typora.lnk differ diff --git a/operation.log b/operation.log deleted file mode 100644 index 3bbf29a..0000000 --- a/operation.log +++ /dev/null @@ -1,332 +0,0 @@ -C:\Users\Lei Zhao\Desktop\demo>dir - 驱动器 C 中的卷没有标签。 - 卷的序列号是 0E23-B25F - - C:\Users\Lei Zhao\Desktop\demo 的目录 - -2024/11/29 12:45 . -2024/11/29 12:43 .. -2024/11/29 12:43 39 info.txt -2024/11/29 12:45 9 README.md -2024/11/14 16:35 19,456 家委会竞选申报表.doc - 3 个文件 19,504 字节 - 2 个目录 74,087,919,616 可用字节 - -C:\Users\Lei Zhao\Desktop\demo>git init -Initialized empty Git repository in C:/Users/Lei Zhao/Desktop/demo/.git/ - -C:\Users\Lei Zhao\Desktop\demo>git checkout -b main -Switched to a new branch 'main' - - - -C:\Users\Lei Zhao\Desktop\demo>git add . - -C:\Users\Lei Zhao\Desktop\demo>git commit -m "my first demo about git on my home pc" -[main (root-commit) 5ae0a01] my first demo about git on my home pc - 3 files changed, 2 insertions(+) - create mode 100644 README.md - create mode 100644 info.txt - create mode 100644 "\345\256\266\345\247\224\344\274\232\347\253\236\351\200\211\347\224\263\346\212\245\350\241\250.doc" - -C:\Users\Lei Zhao\Desktop\demo>git remote add origin https://demo.gitea.com/lzdev/Demo.git - - - -C:\Users\Lei Zhao\Desktop\demo>git push -u origin main -Enumerating objects: 5, done. -Counting objects: 100% (5/5), done. -Delta compression using up to 4 threads -Compressing objects: 100% (3/3), done. -Writing objects: 100% (5/5), 5.06 KiB | 1.69 MiB/s, done. -Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) -remote: . Processing 1 references -remote: Processed 1 references in total -To https://demo.gitea.com/lzdev/Demo.git - * [new branch] main -> main -branch 'main' set up to track 'origin/main'. - -C:\Users\Lei Zhao\Desktop\demo>git list -git: 'list' is not a git command. See 'git --help'. - -The most similar commands are - bisect - rev-list - - - -C:\Users\Lei Zhao\Desktop\demo>git --state -unknown option: --state -usage: git [-v | --version] [-h | --help] [-C ] [-c =] - [--exec-path[=]] [--html-path] [--man-path] [--info-path] - [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch] - [--no-optional-locks] [--no-advice] [--bare] [--git-dir=] - [--work-tree=] [--namespace=] [--config-env==] - [] - - - -C:\Users\Lei Zhao\Desktop\demo>git config - -usage: git config list [] [] [--includes] - or: git config get [] [] [--includes] [--all] [--regexp] [--value=] [--fixed-value] [--default=] - or: git config set [] [--type=] [--all] [--value=] [--fixed-value] - or: git config unset [] [--all] [--value=] [--fixed-value] - or: git config rename-section [] - or: git config remove-section [] - or: git config edit [] - or: git config [] --get-colorbool [] - -Config file location - --[no-]global use global config file - --[no-]system use system config file - --[no-]local use repository config file - --[no-]worktree use per-worktree config file - -f, --[no-]file - use given config file - --[no-]blob read config from given blob object - -Action - --get get value: name [] - --get-all get all values: key [] - --get-regexp get values for regexp: name-regex [] - --get-urlmatch get value specific for the URL: section[.var] URL - --replace-all replace all matching variables: name value [] - --add add a new variable: name value - --unset remove a variable: name [] - --unset-all remove all matches: name [] - --rename-section rename section: old-name new-name - --remove-section remove a section: name - -l, --list list all - -e, --edit open an editor - --get-color find the color configured: slot [] - --get-colorbool find the color setting: slot [] - -Display options - -z, --[no-]null terminate values with NUL byte - --[no-]name-only show variable names only - --[no-]show-origin show origin of config (file, standard input, blob, command line) - --[no-]show-scope show scope of config (worktree, local, global, system, command) - --[no-]show-names show config keys in addition to their values - -Type - -t, --[no-]type - value is given this type - --bool value is "true" or "false" - --int value is decimal number - --bool-or-int value is --bool or --int - --bool-or-str value is --bool or string - --path value is a path (file or directory name) - --expiry-date value is an expiry date - -Other - --[no-]default - with --get, use default value when missing entry - --[no-]comment - human-readable comment string (# will be prepended as needed) - --[no-]fixed-value use string equality when comparing values to value pattern - --[no-]includes respect include directives on lookup - - - - - - - -C:\Users\Lei Zhao\Desktop\demo>git config --global user.name "lzdev" - -C:\Users\Lei Zhao\Desktop\demo>git config --global user.email "ciozhao@126.com" - -C:\Users\Lei Zhao\Desktop\demo>git commit -m "a first change about README.md" -On branch main -Your branch is up to date with 'origin/main'. - -Changes not staged for commit: - (use "git add ..." to update what will be committed) - (use "git restore ..." to discard changes in working directory) - modified: README.md - -no changes added to commit (use "git add" and/or "git commit -a") - - - - -C:\Users\Lei Zhao\Desktop\demo>git add README.md - -C:\Users\Lei Zhao\Desktop\demo>git commit -m "a first change about README.md" -[main 4c393c2] a first change about README.md - 1 file changed, 8 insertions(+), 1 deletion(-) - -C:\Users\Lei Zhao\Desktop\demo>git status -On branch main -Your branch is ahead of 'origin/main' by 1 commit. - (use "git push" to publish your local commits) - -nothing to commit, working tree clean - -C:\Users\Lei Zhao\Desktop\demo>git stauts -git: 'stauts' is not a git command. See 'git --help'. - -The most similar command is - status - - - - - -C:\Users\Lei Zhao\Desktop\demo>git log -commit 4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main) -Author: lzdev -Date: Fri Nov 29 12:57:06 2024 +0800 - - a first change about README.md - -commit 5ae0a0130741c9015dae69f05c95e5380dd19f17 (origin/main) -Author: lzdev -Date: Fri Nov 29 12:46:21 2024 +0800 - - my first demo about git on my home pc - - - - -C:\Users\Lei Zhao\Desktop\demo>git log --pretty=oneline -4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main) a first change about README.md -5ae0a0130741c9015dae69f05c95e5380dd19f17 (origin/main) my first demo about git on my home pc - - - - -C:\Users\Lei Zhao\Desktop\demo>git log --graph --pretty=oneline --abbrev-commit -* 4c393c2 (HEAD -> main) a first change about README.md -* 5ae0a01 (origin/main) my first demo about git on my home pc - - - - - - -C:\Users\Lei Zhao\Desktop\demo>git show -commit 4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main) -Author: lzdev -Date: Fri Nov 29 12:57:06 2024 +0800 - - a first change about README.md - -diff --git a/README.md b/README.md -index f73693a..4edd251 100644 ---- a/README.md -+++ b/README.md -@@ -1 +1,8 @@ --"test" -+### 关于这个项目的说明 -+ -+作者:Lao Zhao 日期:2024年11月29日 -+ -+--- -+ -++ 今天创建了这个账号 -++ 准备用来记录日记也不错 -\ No newline at end of file - - - - - - -C:\Users\Lei Zhao\Desktop\demo>git push -u origin main -Enumerating objects: 5, done. -Counting objects: 100% (5/5), done. -Delta compression using up to 4 threads -Compressing objects: 100% (3/3), done. -Writing objects: 100% (3/3), 490 bytes | 490.00 KiB/s, done. -Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) -remote: . Processing 1 references -remote: Processed 1 references in total -To https://demo.gitea.com/lzdev/Demo.git - 5ae0a01..4c393c2 main -> main -branch 'main' set up to track 'origin/main'. - -C:\Users\Lei Zhao\Desktop\demo>git add . - - - - -C:\Users\Lei Zhao\Desktop\demo>git show -commit 4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main, origin/main) -Author: lzdev -Date: Fri Nov 29 12:57:06 2024 +0800 - - a first change about README.md - -diff --git a/README.md b/README.md -index f73693a..4edd251 100644 ---- a/README.md -+++ b/README.md -@@ -1 +1,8 @@ --"test" -+### 关于这个项目的说明 -+ -+作者:Lao Zhao 日期:2024年11月29日 -+ -+--- -+ -++ 今天创建了这个账号 -++ 准备用来记录日记也不错 -\ No newline at end of file - -C:\Users\Lei Zhao\Desktop\demo>git log --oneline -4c393c2 (HEAD -> main, origin/main) a first change about README.md -5ae0a01 my first demo about git on my home pc - - - - - -C:\Users\Lei Zhao\Desktop\demo>git status -On branch main -Your branch is up to date with 'origin/main'. - -Changes to be committed: - (use "git restore --staged ..." to unstage) - modified: README.md - deleted: info.txt - - - - - -C:\Users\Lei Zhao\Desktop\demo>git rm info.txt -fatal: pathspec 'info.txt' did not match any files - - - - - -C:\Users\Lei Zhao\Desktop\demo>git commit -m "我删除了一个叫info.txt的文件" -[main da56802] 我删除了一个叫info.txt的文件 - 2 files changed, 4 insertions(+), 3 deletions(-) - delete mode 100644 info.txt - - - - - -C:\Users\Lei Zhao\Desktop\demo>git push -warning: redirecting to https://demo.gitea.com/lzdev/My_diary/ -Enumerating objects: 5, done. -Counting objects: 100% (5/5), done. -Delta compression using up to 4 threads -Compressing objects: 100% (3/3), done. -Writing objects: 100% (3/3), 529 bytes | 529.00 KiB/s, done. -Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) -remote: . Processing 1 references -remote: Processed 1 references in total -To https://demo.gitea.com/lzdev/Demo.git - 4c393c2..da56802 main -> main - - - - - -