简体   繁体   English

有没有像TortoiseSVN那样的git-svn windows客户端?

[英]Is there a git-svn windows client something like TortoiseSVN?

I like TortoiseSVN's Windows integration. 我喜欢TortoiseSVN的Windows集成。 Is there something like that for dealing with git-svn? 处理git-svn有类似的东西吗? I'd even go with a less integrated GUI if it is quick enough to access. 如果它足够快,我甚至可以使用集成度较低的GUI。 What I don't want is a CLI as I rarely would have a command prompt sitting in the correct directory. 我不想要的是CLI,因为我很少有一个命令提示符位于正确的目录中。


This is a related question but for Linux 这是一个相关的问题,但对于Linux

TortoiseGit ( https://tortoisegit.org/ ) added basic support for git-svn in release 0.8.1.0: TortoiseGit( https://tortoisegit.org/ )在0.8.1.0版本中添加了对git-svn的基本支持:

The release log says: 发布日志说:

Add Basic Git-SVN Operation: 添加基本​​Git-SVN操作:

  • Add SVN DCommit Command 添加SVN DCommit命令

  • Add "SVN Rebase" and "SVN DCommit" command at shell contextmenu 在shell contextmenu中添加“SVN Rebase”和“SVN DCommit”命令

  • Support Git svn-clone at clone dialog. 在克隆对话框中支持Git svn-clone。

看看TortoiseGit ,它是Git的TortoiseSVN克隆。

The easiest way I found was to use the git gui , and add a git svn dcommit and git svn rebase command to the Tools menu. 我找到的最简单的方法是使用git gui ,并将git svn dcommitgit svn rebase命令添加到Tools菜单。

If you install msysGit, it will even put a 'Git GUI here' command in your context menu. 如果您安装msysGit,它甚至会在您的上下文菜单中放置一个'Git GUI here'命令。

This has the advantage of not requiring any additional software apart from git itself, and will work on every platform that git (gui) runs on. 这样做的好处是除了git本身之外不需要任何其他软件,并且可以在git(gui)运行的每个平台上运行。

Edit: I should mention that this is exactly the way I have been productively using git against our svn-repos for a few months now. 编辑:我应该提一下,这正是我几个月来对我们的svn-repos有效地使用git的方式。 Works just fine. 工作得很好。 And it's the same on Windows, Linux, whatever. 它在Windows,Linux等都是一样的。 So no need to use different tools for the same job, depending on the OS. 因此,根据操作系统的不同,无需为同一作业使用不同的工具。

Try SmartGit , it has almost all the functions console has and it has great GUI. 尝试使用SmartGit,它几乎具有控制台所具有的所有功能,并且具有出色的GUI。 http://www.syntevo.com/index.html http://www.syntevo.com/index.html

The best GUI tool for for using git local and svn as a server is SmartGitHg from syntevo (works for Windows, Lunux and OS X). 用于将git local和svn用作服务器的最佳GUI工具是来自syntevo的SmartGitHg (适用于Windows,Lunux和OS X)。 For OS X you cal also use SourceTree from Atlassian. 对于OS X,您还可以使用Atlassian的SourceTree Windows Version of SourceTree doesn't support SVN. Windows版SourceTree不支持SVN。

You can use TortoiseSVN itself . 你可以使用TortoiseSVN本身 That's what I do. 我就是做这个的。

A sideways and very late answer, but maybe useful to later spectators, re why you don't want a CLI; 一个横向而且非常晚的答案,但对后来的观众可能有用,这就是为什么你不想要一个CLI; assuming you're using XP install the Microsoft Command Prompt Here Powertoy which gives you an Explorer right-click shortcut on a folder. 假设您正在使用XP安装Microsoft 命令提示符这里Powertoy ,它为您提供资源管理器右键单击文件夹上的快捷方式。 I use it all the time. 我用它所有的时间。 Windows 7 has the feature out of the box, but you have to hold down some key while you right click, I think.. shift or alt or something. Windows 7具有开箱即用的功能,但您必须在右键单击时按住某些键,我认为.. shift或alt或其他东西。

Also, Tortoisegit now apparently has git-svn features, I am going to check them out.. 此外,Tortoisegit现在显然具有git-svn功能,我将检查它们。

One may use any Git client while using the server-side Git-SVN synchronization setup. 在使用服务器端Git-SVN同步设置时,可以使用任何Git客户端。 Have a look at SubGit to achieve that. 看看SubGit来实现这一目标。

One has to install SubGit into Subversion repository: 必须将SubGit安装到Subversion存储库中:

$ subgit configure $SVN_REPOS
# Adjust $SVN_REPOS/conf/subgit.conf to specify your branches and tags
# Adjust $SVN_REPOS/conf/authors.txt to specify git & svn authors mapping
$ subgit install $SVN_REPOS
...
$ INSTALLATION SUCCESSFUL

SubGit converts Subversion repository into Git (it works in opposite direction as well) and installs SVN and Git hooks. SubGit将Subversion存储库转换为Git(它也在相反的方向工作)并安装SVN和Git钩子。 These hooks are triggered by svn commit and git push as result all incoming modifications are instantly replicated to Git or SVN correspondingly. 这些钩子由svn commitgit push触发,因此所有传入的修改都会立即相应地复制到Git或SVN。 For more details please refer to SubGit documentation and git-svn comparison. 有关更多详细信息,请参阅SubGit文档git-svn比较。

Starting from version 2.0 (not yet released at the moment of posting) SubGit allows to synchronized Subversion and Git repositories located on different hosts. 从版本2.0开始(在发布时尚未发布)SubGit允许同步位于不同主机上的Subversion和Git存储库。

SubGit is a commercial tool. SubGit是一种商业工具。 It is free for open-source, academic and small projects (up to 10 committers). 它对于开源,学术和小型项目(最多10个提交者)是免费的。

Full disclosure: I'm one of SubGit developers. 完全披露:我是SubGit开发人员之一。

我没有看到过去与SVN相关的最好的工具,如gui,但Git现在已经做了一些非常有用的东西,并且很容易尝试使用Git Desktop for windows: https//desktop.github.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM