16.修改提交内容
修改文件,并提交版本库
# 查看文件内容
$ cat .\test.txt
abc
123
# 提交到版本库
$ git commit -a -m "Added 123 to the test.txt"
[master ed5fe0d] Added 123
1 file changed, 2 insertions(+), 1 deletion(-)
# 查看提交日志
$ git hist
* fc49e5f 2023-05-05 | Added 123 to the test.txt (HEAD -> master) [aku]
* d7f681f 2023-05-05 | Added abc to the test.txt (tag: v1) [aku]
* 01b8702 2023-05-05 | Add first file (tag: v1-beta) [aku]再次修改文件,并覆盖上一次提交的内容
解释
Last updated