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.
在我上次发布后,我用一个
svn copy https://svn.abc.com/svn/project/trunk https://svn.abc.com/svn/project/tags/release_20120722 -m "Tagging the release of feature"
如果我将一些我不想要的东西合并到主干,我需要恢复到这个标签,我该怎么办?
你需要像这样创建 revert diffsvn diff https://svn.abc.com/svn/project/trunk https://svn.abc.com/svn/project/tags/release_20120722 > tmp.diff并用它来修补你的树干patch -p0 -i tmp.diff。
svn diff https://svn.abc.com/svn/project/trunk https://svn.abc.com/svn/project/tags/release_20120722 > tmp.diff
patch -p0 -i tmp.diff