Use the SVN command-line tool

欢迎关注我的社交账号:

博客园地址: http://www.cnblogs.com/jiangxinnju/p/4781259.html
GitHub地址: https://github.com/jiangxincode
知乎地址: https://www.zhihu.com/people/jiangxinnju

本文转自:http://www.codeweblog.com/use-the-svn-command-line-tool/
排版有修改

From http://subversion.tigris.org for subversion for windows version, after installation there will be a svn.exe the command-line client based tool. Of course, there are also server-side program, here is not concerned about how to configure the SVN service. Setup the path to svn.exe joined the path environment variable, we are able to directly enter the svn command line can be used.
If you do not know how to use the command svn command can query as follows:
svn help
That the sub-command, but do not know subcommands can also search for:
svn help ci

Developers frequently used commands

Import items
svn import http://svn.chinasvn.com:82/pthread - message "Start project"
Export Project
svn checkout http://svn.chinasvn.com:82/pthread
Export to export by way of a "clean" project
svn export http://svn.chinasvn.com:82/pthread pthread
Clearance for the failure of the transaction
svn cleanup
Code changes locally, check the status changes

svn status-v
svn diff

Update (update) server data to local

svn update directory 
svn update file

Increase (add) local data to the server

svn add file.c 
svn add dir

Rename the file and delete

svn mv bc bb.c 
svn rm dc

Submit (commit) local document to the server

svn commit 
svn ci 
svn ci-m "commit"

View Log

svn log directory 
svn log file

1, in the local paper, each directory has a. Svn folder (attribute is hidden), save the relevant information.
2, registered environmental variables SVN_EDITOR as "E: \ Program Files \ Vim \ vim71 \ gvim.exe", results in the svn ci, when an error:

'E: \ Program' is not an internal or external command, operable program or batch file.
svn: Commit failed (details follow): 
svn: system ('E: \ Program Files \ Vim \ vim71 \ gvim.exe svn-commit.tmp') returns 1

The SVN_EDITOR to "gvim.exe", and add the path in the path "E: \ Program Files \ Vim \ vim71 \", so that you can use vim at the time of submission of written comments.

posted @   Aloys_Code  阅读(1917)  评论(0编辑  收藏  举报
编辑推荐:
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· .NET 适配 HarmonyOS 进展
· .NET 进程 stackoverflow异常后,还可以接收 TCP 连接请求吗?
· SQL Server统计信息更新会被阻塞或引起会话阻塞吗?
· C# 深度学习框架 TorchSharp 原生训练模型和图像识别
阅读排行:
· 这或许是全网最全的 DeepSeek 使用指南,95% 的人都不知道的使用技巧(建议收藏)
· 拒绝繁忙!免费使用 deepseek-r1:671B 参数满血模型
· 本地搭建DeepSeek和知识库 Dify做智能体Agent(推荐)
· Sdcb Chats 重磅更新:深度集成 DeepSeek-R1,思维链让 AI 更透明!
· DeepSeek-R1本地部署如何选择适合你的版本?看这里
我的GITHUB|
点击右上角即可分享
微信分享提示