高效的代码迁移方案(使用 git)
1. 把 ics2021 做个备份,存为 ics2021_backup
2. 来到 ics2021/PA,把 PA1-2 的所有 commit 压缩成一个 commit,使用 git rebase -i <after-this-commit> 命令
来源:https://stackoverflow.com/questions/5189560/how-do-i-squash-my-last-n-commits-together
3. 使用 git format-patch pa1..pa2 -o patches 生成补丁
4. 使用 git am -3 --ignore-whitespace ~/sda3/ics2021/patches/* 在 ysyx-workbench 应用补丁
5. 修复所有的conflicts,之后 commit