SVN常用操作&TortoiseSVN签出的项目,导入Eclipse后,用Eclipse中的SVN进行版本管理

Tortoise SVN:
安装完成后,默认的右键菜单有SVN Update, SVN Commit, 增加SVN Show log:右键->TortoiseSVN->Settings->General->Context Menu->选中Show log,然后勾上 ok(在弹出的Show Log画面中,勾上Show only affeted paths,就只看选中文件或者文件夹的修订履历)

在TortoiseSVN中,选择程序的根目录-》查看日志,可以查看所有人的提交记录( 并且可以根据,作者,时间,内容等进行过滤

TortoiseSVN中防止错误提交:选中文件-》SVN Commit-》在弹出的对话框中选择要忽略提交的文件,右键-》Move to changelist-》ignore-on-commit-》done
然后再次通过SVN Commit进来后,会发现,ignore-on-commit组下面的文件会默认不选中,防止被错误提交

Tortoise SVN清楚默认保存的用户,密码,url等数据:TortoiseSVN->Settings->Saved Data

Visual SVN Server迁移:把Repositories目录下的文件夹复制过去,然后在Tortoise SVN进行Relocate操作就可以了(修改机会会保留下来)。

Eclipse SVN插件:
Team->Share Project->SVN->
Your project already has SVN directories. It was probably previously shared, or checked  out using another tool. It will be automatically shared using the following information.

User:  
Host:-

Finish, Done!

Set svn:ignore on it via Team->Add to svn:ignore
在同步视图,选中不需要版本控制的文件,右键,Add to svn:ignore

选中项目->Team->Show History 可以查看 所有人、指定人的提交记录(日期,提交人,备注)

导出代码、文件Diff变更比较记录:
选中需要比较的文件的根目录,右键 -> SVN Commit -> 选中所有变更的文件,右键 -> Show defferences as unified diff(在这个右键界面中还可以复制到变更的文件一览Copy path to clipboard) -> 在保存比较记录(文本文件)

TortoiseSVN:报错:Working Copy xxx locked,使用Clean Up(Clean up working copy status & include externals), ok

Visual SVN Server在修改机器密码后不自动启动,Services->VisualSVN Server->General Startup type & Log on account(换成当前使用的域帐号domain\username)

猜你喜欢

转载自desert3.iteye.com/blog/1327497