问题描述
我在 open wrt 中做了那个补丁,我用 patch -p 1 -i filename.patch + git add filename.patch 应用了补丁,但是当我检查状态时,我明白了,我还需要做些什么吗? 谢谢
/openwrt$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: target/linux/mvebu/patches-5.4/800-Add_Armada_38x_support_for_clk-cpu.patch
解决方法
索引中列出的新内容可以提交或重置。 to be committed
是为了提醒您add
已将快照添加到存储库但尚未将它们烘焙到提交中,下一行提醒您可以在编写快照之前将它们撤回也提交。 add
和 reset
(和 checkout
)也有 -p
/--patch
选项,你可以做一些零碎的事情,Git 有“任何对你的工作有用的东西”事情如此艰难,人们可能会迷失方向。