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.

转载于:https://www.cnblogs.com/jiangxinnju/p/4781259.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值