Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用repo命令。
repo init -u URL
repo sync
在使用补丁更改之前,我如何恢复原始文件。
我可以指定不需要恢复的文件吗?
恢复文件的最佳方法是两步命令: repo diff >> difference.patch和下一步 patch -p0 -R < difference.patch
repo diff >> difference.patch
patch -p0 -R < difference.patch
您还可以删除不需要从中恢复的文件difference.patch
difference.patch