有没有像 TortoiseSVN 这样的 git-svn Windows 客户端?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/894360/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a git-svn windows client something like TortoiseSVN?
提问by BCS
I like TortoiseSVN's Windows integration. Is there something like that for dealing with git-svn? I'd even go with a less integrated GUI if it is quick enough to access. What I don't want is a CLI as I rarely would have a command prompt sitting in the correct directory.
我喜欢 TortoiseSVN 的 Windows 集成。有没有类似的东西来处理 git-svn?如果访问速度足够快,我什至会使用集成度较低的 GUI。我不想要的是 CLI,因为我很少将命令提示符放在正确的目录中。
This is a related questionbut for Linux
这是一个相关的问题,但对于 Linux
采纳答案by loraderon
Have a look at TortoiseGitwhich is a TortoiseSVN clone for Git.
看看TortoiseGit,它是 Git 的 TortoiseSVN 克隆。
回答by fmarc
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
Add "SVN Rebase" and "SVN DCommit" command at shell contextmenu
Support Git svn-clone at clone dialog.
添加 SVN DCommit 命令
在 shell 上下文菜单中添加“SVN Rebase”和“SVN DCommit”命令
在克隆对话框中支持 Git svn-clone。
回答by fmarc
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 dcommit
和git svn rebase
命令。
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. Works just fine. And it's the same on Windows, Linux, whatever. So no need to use different tools for the same job, depending on the OS.
编辑:我应该提一下,这正是我几个月来一直有效地将 git 用于我们的 svn-repos 的方式。工作得很好。在 Windows、Linux 等任何系统上都是一样的。因此,无需为同一作业使用不同的工具,具体取决于操作系统。
回答by vladexologija
Try SmartGit , it has almost all the functions console has and it has great GUI. http://www.syntevo.com/index.html
试试 SmartGit ,它几乎拥有控制台的所有功能,而且它有很棒的 GUI。http://www.syntevo.com/index.html
回答by WebDucer
The best GUI tool for for using git local and svn as a server is SmartGitHgfrom syntevo (works for Windows, Lunux and OS X). For OS X you cal also use SourceTreefrom Atlassian. Windows Version of SourceTree doesn't support SVN.
使用 git local 和 svn 作为服务器的最佳 GUI 工具是来自 Syntevo 的SmartGitHg(适用于 Windows、Lunux 和 OS X)。对于 OS X,您还可以使用Atlassian 的SourceTree。Windows 版本的 SourceTree 不支持 SVN。
回答by Camilo Martin
You can use TortoiseSVN itself. That's what I do.
您可以使用 TortoiseSVN 本身。我就是做这个的。
回答by blueshift
A sideways and very late answer, but maybe useful to later spectators, re why you don't want a CLI; assuming you're using XP install the Microsoft Command Prompt Here Powertoywhich gives you an Explorer right-click shortcut on a folder. 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.
一个侧面和非常晚的答案,但可能对后来的观众有用,为什么您不想要 CLI;假设您使用的是 XP,请安装 Microsoft Command Prompt Here Powertoy,它为您提供了一个资源管理器右键单击文件夹的快捷方式。我用它所有的时间。Windows 7 具有开箱即用的功能,但是您必须在右键单击时按住某个键,我认为.. shift 或 alt 或其他什么。
Also, Tortoisegit now apparently has git-svn features, I am going to check them out..
此外,Tortoisegit 现在显然具有 git-svn 功能,我将查看它们。
回答by vadishev
One may use any Git client while using the server-side Git-SVN synchronization setup. Have a look at SubGitto achieve that.
在使用服务器端 Git-SVN 同步设置时,可以使用任何 Git 客户端。看看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. These hooks are triggered by svn commit
and git push
as result all incoming modifications are instantly replicated to Git or SVN correspondingly. For more details please refer to SubGit documentationand git-svncomparison.
SubGit 将 Subversion 存储库转换为 Git(它也以相反的方向工作)并安装 SVN 和 Git 钩子。这些钩子被触发svn commit
,并git push
作为结果,所有传入的修改即刻复制到Git的或SVN水涨船高。更多细节请参考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. It is free for open-source, academic and small projects (up to 10 committers).
SubGit 是一个商业工具。它对开源、学术和小型项目(最多 10 个提交者)免费。
Full disclosure: I'm one of SubGit developers.
完全披露:我是 SubGit 开发人员之一。
回答by UMAR
I have not seen best tool in past related to SVN like gui, but Git has now made something very useful and easy try Git Desktop for windows: https://desktop.github.com/
我过去没有见过像 gui 这样的与 SVN 相关的最佳工具,但 Git 现在做了一些非常有用和容易的尝试 Windows 版 Git 桌面:https: //desktop.github.com/