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 查看或返回(但不恢复)我们之前的任何代码(最后 3 或 5)的命令是什么?我知道有这样的命令revert,但这不是我要搜索的,因为我只想看看以前的代码是什么样子而不是还原它。如何在类 UNIX 系统中通过命令行执行此操作。
revert
编辑
颠覆命令和脚本
svn diff -rBASE:HEAD
right click on file go to svn >> check Difference
修订日志对话框
svn cat 将显示文件的内容。
您可以使用 -r 开关指定修订版本来查看以前的版本。
例如
svn cat http://myrepo/myfile.txt -r1