第五周:重构
原文英文,约500词,阅读约需2分钟。发表于: 。Introduction This week I was tasked with adding 3 small changes on my release 0.1 project, all on separate commits. Then, I would use git rebase to squash all the commits into one commit, merging...
本周,我在项目中进行了三个改动:修复了TOML文件中API键未定义时的错误,调整了代码顺序以确保启动时打印欢迎信息,并将变量名从“modelChange”改为“modelNumber”。之后,我通过交互式rebase合并提交,并更新了提交信息。这次实验让我熟悉了git rebase和Unix命令。