首先运行 reduce_rtt_code.py 脚本,用 -i 指定 RT-Thread 完整版代码路径,用 -o 指定输出
./reduce_rtt_code.py -i=/mnt/d/proj/rt-thread/rt-thread-base -o=/mnt/d/proj/rt-thread/rt-thread-lite
进入 rt-thread-lite 目录,然后提交删除动作,记录删除动作前一个 commit 号
git add .
git commit -m 'reduce rtt code tree'
用 git rebase 撤销删除动作,在交互界面里将 pick 修改为 d,表示删除指定 commit, 然后保存修改
git rebase -i <commit-id>