tortoisesvn 64位安装怎么安装

博客访问: 457117
博文数量: 110
博客积分: 915
博客等级: 下士
技术积分: 2129
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Java
一、客户端TortoiseSVN的安装
运行TortoiseSVN程序,点击Next,下面的截图顺序即为安装步骤:&
点击Finish按钮后会提示重启系统,其实不重启也没有关系。
二、客户端TortoiseSVN的使用方法
1、&签入源代码到SVN服务器
假如我们使用Visual&Studio在文件夹StartKit中创建了一个项目,我们要把这个项目的源代码签入到SVN&Server上的代码库中里,首先右键点击StartKit文件夹,这时候的右键菜单如下图所示:
点击Import,弹出下面的窗体,其中&是服务器名,svn是代码仓库的根目录,StartKit是我们在上个教程中添加的一个代码库。
说明:左下角的CheckBox,在第一次签入源代码时没有用,但是,在以后你提交代码的时候是非常有用的。
点击OK按钮,会弹出下面的窗体,要求输入凭据:
在上面的窗体中输入用户名和密码,点击OK按钮:
如上图所示,好了,源代码已经成功签入SVN服务器了。这时候团队成员就可以迁出SVN服务器上的源代码到自己的机器了。
2、签出源代码到本机
在本机创建文件夹StartKit,右键点击Checkout,弹出如下图的窗体:
在上图中URL&of&Repository:下的文本框中输入svn&server中的代码库的地址,其他默认,点击OK按钮,就开始签出源代码了。
说明:上图中的Checkout&Depth,有4个选项,分别是迁出全部、只签出下一级子目录和文件、只签出文件、只签出空项目,默认的是第一项。上面的例子中,我们也可以使用web的方式访问代码库,在浏览器中输入
这时候也会弹出对话框,要求输入用户名和密码,通过验证后即可浏览代码库中的内容。
搞定!源代码已经成功签出到刚才新建的StartKit目录中。
打开StartKit目录,可以看到如下图的文件夹结构:
一旦你对文件或文件夹做了任何修改,那么文件或文件夹的显示图片机会发生变化。下图中我修改了其中的二个文件:
大家看一下不同状态所对应的图片:
我们已经知道怎么将源代码签入到SVN服务器,怎么从服务器签出代码到本机,也简单了解了不同状态所对应的图案啦。
3、提交修改过的文件到SVN服务器
上面的图2-2-7中,我修改了位于Model文件中的二个文件ImageInfo.cs和NewsInfo.cs,下面演示如何提交到SVN服务器。
注意:提交源代码到服务器时,一定确保本机的代码是最新版本,否则可能提交失败,或者造成版本冲突。
在Model文件夹上点击右键或在Model文件下的空白处点击右键,点击SVN&Commit…弹出下面的窗体:
点击OK按钮后,弹出如下图的窗体:
4、添加新文件到SVN服务器
我们在Model文件下添加一个新的类文件UserInfo.cs,在Model文件下的空白处点击右键,点击SVN&Commit…,和上面讲的提交修改过的文件到SVN服务器一样,就可以了。另外也可以在文件UserInfo.cs上点击右键,点击TortoiseSVN=>>Add,弹出如下图的窗体:
选中UserInfo.cs文件,点击OK按钮,这样并没有将这个文件提交到SVN服务器,只是将这个文件标记为源代码库库中的文件,并将其状态置为修改状态。之后,我们要再SVN&Commit这个文件一次,才可以将其真正提交到SVN服务器上的代码库中。&
上面讲是添加文件,实际上,添加文件夹的步骤也是一样的,这里就不说了。
5、更新本机代码与SVN服务器上最新的版本一致
这个也很简单,只要在需要更新的文件夹上点击右键或在该文件下的空白处点击右键,点击SVN&Update,就可以了。
注意:更新操作可能会因为版本冲突而失败,这是可以使用合并【Merge】或其他方法解决;也可能因为锁定【Get&Lock】而失败,这是需要先解锁【Release&Lock】。
6、重命名文件或文件夹,并将修改提交到SVN服务器
只要在需要重命名的文件或文件夹上点击右键,点击TortiseSVN=>>Rename…,在弹出的窗体中输入新名称,点击OK按钮,就可以了。此方法也不是直接重命名,而是将该文件或文件夹的名称标记为重命名后名称,也需要我们使用SVN&Commit提交到SVN服务器后才真正重命名。
7、删除文件或文件夹,并将修改提交到SVN服务器
最简单就是,你直接删除文件或文件夹,然后使用SVN&Commit提交更新到SVN服务器。另外一种方法是在你要删除的文件或文件夹上点击右键=>>TortoiseSVN=>>Delete删除,此方法也不是直接删除,而是将该文件或文件夹的状态置为删除,也需要我们使用SVN&Commit提交到SVN服务器后才真正删除。
说明:实际上,从你把源代码迁签入SVN服务器开始,每一个版本的数据和文件,就算是你已经删除了的,也都可以随时迁出。
以上只是TortoiseSVN最简单的几个功能,其实他的功能远不止这些,其他的功能大家可以在使用的过程中慢慢体会。
阅读(72413) | 评论(0) | 转发(4) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。Home · TortoiseSVNTortoiseSVN is an
client, implemented as a Windows shell extension. It's intuitive and easy to use, since it doesn't require the Subversion command line client to run. And it is free to use, even in a commercial environment. Simply the coolest Interface to (Sub)Version Control!AdvertisementPosted on November 29, 2016We're proud to announce that TortoiseSVN 1.9.5 has been released. It is linked against Subversion 1.9.5.This is a a bugfix release with one security issue fixed in the svn library:: Unrestricted XML entity expansion in mod_dontdothat and Subversion clients using http(s)://Please read the
to get a list of many of the new features in TortoiseSVN.Apart from the features listed in the release notes, there were also a lot of smaller improvements which are too many to list.Before upgrading from pre 1.9 versions please read the .Please read those thoroughly before you upgrade to TortoiseSVN 1.9 to avoid any surprises.Posted on December 10, 2012If you're using , you can integrate TortoiseSVN commands to various context menus. Of course, there are Subversion plugins for Visual Studio, but if you're using one of the free versions of Visual Studio, you can not use those plugins. And sometimes it's still nice to have some of the TortoiseSVN commands available from Visual Studio directly, even if you have such a plugin installed.CryptSyncPosted on November 2, 2012So I made another tool: CryptSync.CryptSync is a small utility that synchronizes two folders while encrypting the contents in one folder. That means one of the two folders has all files unencrypted (the files you work with) and the other folder has all the files encrypted.The synchronization works both ways: a change in one folder gets synchronized to the other folder. If a file is added or modified in the unencrypted folder, it gets encrypted. If a file is added or modified in the encrypted folder, it get decrypted to the other folder.More information here about .Posted on September 22, 2012Subversion's design is made up so that you will never ever lose any data. But there's one command that will do exactly that: Revert.Reverting means discarding all modifications you've made to one or more files which you haven't committed yet.But what if you selected the wrong file(s) to revert? Sure, TortoiseSVN always asks you first before it reverts the files. But as we all know, such "Are you sure?" dialogs are too easily dismissed by clicking "Yes".So what if you reverted files and you then discover that you shouldn't have done that?Posted on May 9, 2012The revision graph is a nice way to get a quick overview of your project. However you can not share the graph with other people unless you save it as an image and pass the image on.If the revision graph is small, then saving the graph as a PNG image will do just fine. But as with all images, a PNG does not scale very well. And if the revision graph is already big the resulting image file can get quite big as well. It can even get too big to show.Auto Aero ColorsPosted on April 9, 2011 o Windows 8 has a new feature where the Aero colors can be .This seems to be a nice feature, and there's even a tool available that offers that feature for Windows 7: .But there are some things about Aura that bother me, so I hacked together my own tool which offers that feature.Unlike Aura, AAClr is written in plain C++ and doesn't use the .NET Framework. For tools that are supposed to be started automatically on logon, this ensures that the whole startup time doesn't increase by several seconds.AAClr also detects changes in wallpapers by catching events from the system and doesn't use timers that access the wallpaper file several times a second (like Aura does). That means that AAClr is idle most of the time and only wakes up when necessary.And about resource usage: AAClr uses less than 2MB of private bytes - I think that's not too much.The link to the download can be found on the .Posted on January 15, 2011 o There's now a
available about TortoiseSVN. Of course, there are books about Subversion which mention TortoiseSVN. But this is (I think) the first book about TortoiseSVN.Full disclosure: I was asked to
the book, which I did. And I'm mentioned as a reviewer in the book! So I had to write something about it here since I was never mentioned in a book before :).read my
about this book.7708人阅读
一直觉得,TortoiseSVN客户端使用很方便。当新员工入职后,总是要讲解一番基本操作。写了一个文档,介绍常用命令,这样一来新同事可以随时查找,另一方面,我也可以抽出时间来做其它事情。后期还是会陆续更新文档,毕竟使用过程是一个长期的过程,因为总是会提出新需求。
&&&&&&&&TortoiseSVN(以下简称“SVN”)是一款版本控制软件。
&&&&&&&&特点:
?所有成员维护同一个版本库,无需专人维护所有文件的最新版本;
?协同工作,提高团队工作效率;
?记录每个文件从诞生到最终完成全过程的每步细节,细度由提交人掌控;
?可重用以前的劳动成果;
?能及时了解团队中其他成员的进度;
?资料共享。
&&&&&&&&地址:
版本:TortoiseSVN 32-Bit或TortoiseSVN
32-Bit,对应Windows32位或64位版本
包名:TortoiseSVN-1.7.4.22459-win32-svn-1.7.2.msi
安装:按提示安装软件
&&&&&&&&该命令的操作步骤依次如下所示:
?本地创建一个文件夹,在文件夹上点击右键,出现下图所示的菜单项:
?点击“SVN
Checkout…”,出现下图所示对话框:
of repository:”中填写服务器上的版本文件地址
?在“Checkout
directory:”中填写本地文件路径,用于保存从服务器上的版本文件副本(以下简称“副本”),其它选项为默认值
?点击“OK”按钮,出现授权登陆框:
&&&&&&&&&&&&&&&&&&向SVN管理员获取账号和密码,输入账号和密码,勾选“Save
authentication”(勾选该项后,下次就不用输入账号和密码了),点击“OK”。
?授权通过后,将出现下载服务器版本文件过程的对话框:
?完成数据下载,出现如下界面:
?点击“OK”后,此时在本地文件夹中就会保留服务器文件副本。
到此,通过“SVN Checkout…”,已成功获得所需版本文件副本。
注意:在进行该命令之前,必须依次进行其它两个命令操作“SVN Update”和“Diff”(详见命令操作规范)。
副本修改后,文件图标由“绿勾”变成“红叹号”。同时,该副本需上传服务器,保证数据同步,以便其他成员能看到您所修改的数据。
操作步骤依次如下所示:
?找到副本修改处,或所有修改副本的同一个上级目录
?点击鼠标右键,出现如图所示菜单:
?点击“SVN
Commit…”,出现如图所示对话框:
该对话框展示内容如下:
(1)Commit to:表示服务器版本地址,副本会上传到该地址所在的地方,不可编辑;
(2)Message:用来描述副本修改的原因;
(3)Changes made:表示当前文件夹下所修改的副本文件。
?点击“OK”,上传服务器,同步版本;
?上传成功后,显示如下对话框:
?点击“OK”,上传修改副本成功。
&&&&&&&&注意:每当执行“SVN
Commit…”时,必须先执行“SVN Update”。
执行该命令,用于同步服务器最新版本,便于在最新版本上开展工作。
操作步骤如下所示:
?找到“Checkout”的根目录,点击右键,出现如下所示菜单:
?点击“SVN
Update”,将出现以下对话框:
表示将从服务器下载最新的副本,对话框中所显示的内容表明有两个文件更新。
?点击“OK”,关闭对话框。
到此,通过“SVN Update”,成功获得最新副本。若服务器没有文件更新,则对话框中不会显示“Updated”项,仅显示“Completed”项。
&&&&&&&&注意:每当执行“SVN
Commit…”时,最好先执行一下“Diff”。
&&&&&&&&目的:再次集中审查副本修改的内容,确保修改无错。
?定位到文件图标为“红叹号”的文件,点击“右键”-&“TortoiseSVN”-&“Diff”,如下图所示:
?在点击“Diff”之后,出现如下所示对话框:
其中:对话框中左侧部分为服务器上的文件内容,右侧部分为修改后的文件内容。
从左右对比来看,副本的修改内容为“黄色”条状部分。
&&&&&&&&当副本修改处和服务器版本相同处被修改并下载到本地时,就会发生文件冲突。
&&&&&&&&操作步骤如下所示:
?执行“SVN
?若发生冲突,会出现如下对话框:
冲突部分的描述由“红色”字体表示,表示“stdafx.h”文件发生冲突
?在“Conflicted”项指定的文件路径的同级目录下,会出现三个标有“问号”的文件和一个标有“黄色叹号”的文件,它们分别为:stdaf.h,stdaf.h.mine,stdaf.h.r7505,stdaf.h.r7507。
?在“stdafx.h”上点击“右键”-&“TortoiseSVN”-&“Edit
conflicts”
?点击“Edit
conflicts”,出现以下对话框:
其中:左边为服务器上修改后的内容部分,右边为副本修改后的内容部分。
?两边的红色部分,根据实际需要进行保存或舍弃。
点击右边“红色”条,如图所示:
由于:左右两边的数据都需要保留,因此执行“Use text block from ’theirs’ before ‘mine’”或“Use
text block from ’mine’ before ‘theirs’”。
?点击“Use
text block from ’theirs’ before ‘mine’”后,出现如下对话框:
此时就没有“红色”条块了,原先的两个“红色”条块所对应的内容就会合并到下面的对话框中。
?点击“菜单”中画红圈的按钮(Mark
as resolved),确认冲突编辑完成:
&&&&&&&&&&&&&&&&此时:stdaf.h.mine,stdaf.h.r7505,stdaf.h.r7507三个文件就会自动删除,stdaf.h文件上的图标由“黄色叹号”变成“红色叹号”。
到此,通过“Edit conflicts”,成功完成冲突编辑操作。
&&&&&其它命令
&&&&&&&&TortoiseSVN客户端的常用操作主要涉及到以上5个命令,其它命令请读者自己查找相关资料。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:135399次
积分:1906
积分:1906
排名:第17939名
原创:65篇
转载:30篇
(1)(1)(1)(1)(1)(4)(5)(17)(2)(2)(1)(2)(6)(6)(1)(3)(8)(3)(2)(1)(3)(1)(4)(7)(10)(2)

我要回帖

更多关于 tortoisesvn的安装 的文章

 

随机推荐