当前位置:网站首页>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 #查看详细的目录的信息(修订人,版本号,文件大小等);
边栏推荐
- What material is sa537cl2? Analysis of mechanical properties of American standard container plate
- 聊聊接口优化的几个方法
- Depth first search of graph
- [combinatorial mathematics] recursive equation (example of recursive equation 2 Hanoi Tower | example of recursive equation 3 insertion sequencing)
- The way of wisdom (unity of knowledge and action)
- Assembly instance analysis -- screen display in real mode
- 【剑指 Offer 】64. 求1+2+…+n
- 智慧之道(知行合一)
- C language modifies files by line
- ucore概述
猜你喜欢

Leetcode: lucky number in matrix

Analysis of variance summary

Recommendation of good books on learning QT programming
![[try to hack] active detection and concealment technology](/img/43/d48f851268fec566ce0cc83bd9557e.png)
[try to hack] active detection and concealment technology

What material is sa537cl2? Analysis of mechanical properties of American standard container plate

Static program analysis (I) -- Outline mind map and content introduction

Processing strategy of message queue message loss and repeated message sending

CC2530 common registers for serial communication

The word backspace key cannot delete the selected text, so you can only press Delete

关于学习Qt编程的好书精品推荐
随机推荐
Résolution de l'instance d'assemblage - - affichage à l'écran en mode réel
How to judge the region of an IP through C?
RF analyze demo build step by step
visual studio “通常每个套接字地址(协议/网络地址/端口)只允许使用一次“
New features of C 10
utfwry. Dat PHP, about ThinkPHP's method of IP location using utfwry address Library
[try to hack] active detection and concealment technology
The word backspace key cannot delete the selected text, so you can only press Delete
Informatics Olympiad all in one YBT 1175: divide by 13 | openjudge noi 1.13 27: divide by 13
深入理解 SQL 中的 Grouping Sets 语句
[Jianzhi offer] 64 Find 1+2+... +n
The most complete postman interface test tutorial in the whole network, API interface test
【Try to Hack】主动侦查隐藏技术
Simulink oscilloscope data is imported into Matlab and drawn
Assembly instance analysis -- screen display in real mode
One brush 149 force deduction hot question-10 regular expression matching (H)
One brush 144 force deduction hot question-1 sum of two numbers (E)
图之深度优先搜索
智慧之道(知行合一)
UCORE overview