当前位置:网站首页>SVN如何查看修改的文件记录
SVN如何查看修改的文件记录
2022-07-03 16:59:00 【星哥玩云】
主要是有四个命令,svn log用来展示svn 的版本作者、日期、路径等等;svn diff,用来显示特定修改的行级详细信息;svn cat,取得在特定版本的某文件显示在当前屏幕;svn list,显示一个目录或某一版本存在的文件。
比较常用的是svn diff命令。它可以比较不同版本之间、svn版本和本地版本库之间,以及检查本地修改的作用。
svn diff; #什么都不加,会坚持本地代码和缓存在本地.svn目录下的信息的不同;
svn diff -r 3; #比较你的本地代码和版本号为3的所有文件的不同;
svn diff -r 3 text.c; #比较你的本地代码和版本号为3的text.c文件的不同;
svn diff -r 5:6; #比较版本5和版本6之间所有文件的不同;
svn diff -r 5:6 text.c; #比较版本5和版本6之间的text.c文件的变化。
查看修改的信息使用 log 指令,如下:
svn log; #什么都不加会显示所有版本commit的日志信息;
svn log -r 4:5; #只看版本4和版本5的日志信息;
svn log test.c; #查看文件test.c的日志修改信息;
svn log -v dir; #查看目录的日志修改信息,需要加v;
查看某个版本的某个文件内容,使用cat指令,如下:
svn cat -r 4 test.c; #查看版本4中的文件test.c的内容,不进行比较;
不用下载到本地查看文件的各种信息,使用 list 指令,如下:
svn list http://svn.test.com/svn #查看目录中的文件;
svn list -v http://svn.test.com/svn #查看详细的目录的信息(修订人,版本号,文件大小等);
边栏推荐
- MySQL single table field duplicate data takes the latest SQL statement
- Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
- The word backspace key cannot delete the selected text, so you can only press Delete
- 远程办公之如何推进跨部门项目协作 | 社区征文
- Thread pool executes scheduled tasks
- 汇编实例解析--实模式下屏幕显示
- What material is 13crmo4-5 equivalent to in China? 13crmo4-5 chemical composition 13crmo4-5 mechanical properties
- [combinatorics] polynomial theorem (polynomial coefficients | full arrangement of multiple sets | number of schemes corresponding to the ball sub model | polynomial coefficient correlation identity)
- Leetcode: lucky number in matrix
- 线程池:业务代码最常用也最容易犯错的组件
猜你喜欢
[JDBC] API parsing
CC2530 common registers for ADC single channel conversion
線程池:業務代碼最常用也最容易犯錯的組件
静态程序分析(一)—— 大纲思维导图与内容介绍
CC2530 common registers for watchdog
Take you to API development by hand
New features of C 10
ANOVA example
Fast Ethernet and Gigabit Ethernet: what's the difference?
【Try to Hack】主动侦查隐藏技术
随机推荐
13mnnimo5-4 German standard steel plate 13MnNiMo54 boiler steel 13MnNiMo54 chemical properties
Bcvp developer community 2022 exclusive peripheral first bullet
[JDBC] API parsing
Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error
Capacités nécessaires à l'analyse des données
線程池:業務代碼最常用也最容易犯錯的組件
CC2530 common registers for ADC single channel conversion
New features of C 10
建立自己的网站(23)
手把手带你入门 API 开发
Analysis of variance summary
[combinatorics] polynomial theorem (polynomial coefficients | full arrangement of multiple sets | number of schemes corresponding to the ball sub model | polynomial coefficient correlation identity)
MySQL single table field duplicate data takes the latest SQL statement
比亚迪、长城混动市场再“聚首”
Acwing game 58
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
图之深度优先搜索
Why is WPA3 security of enterprise business so important?
Daily code 300 lines learning notes day 10
How to allow remote connection to MySQL server on Linux system?