git unstage;该怎么办



我在open wrt中做了那个补丁,我用补丁-p 1-I文件名应用了补丁。补丁+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添加到repo中,但尚未将其烘焙到提交中,下一行提醒您也可以在编写提交之前将其备份。addreset(和checkout)也有-p/--patch选项,你可以零碎地做事情,Git有这样的";对你的工作有用的东西";事情发展得如此艰难,人们可能会有点迷失方向。

相关内容

最新更新