在 Mac OSX 的命令行中使用 svn 并检查 diff 是一个好主意吗?
我曾经在 Windows 中使用 svn 和 TortoiseSVN。
每次修改后,我总是将修改的每个文件与旧文件进行比较。
但是我在mac上找不到像TortiseSVN这样的svn客户端和像WinMerge这样的目录/文件比较工具。
所以不幸的是,我必须在命令行中使用 svn。
我必须使用 svn diff 命令并检查终端屏幕上的差异。
我很担心如果我使用命令行而不是 GUI,我会犯更多的错误和错误。
使用命令行而不是 GUI 是个好主意吗?
每次修改后,用 WinMerge 将我修改的每个文件与旧文件进行比较是否正常?
还是我担心太多了?
有没有像 WinMerge 这样的应用程序可以轻松快速地比较 mac 中 2 个目录中的文件?
I used to use svn with TortoiseSVN in Windows.
And I always compared every file I modified to the old ones with WinMerge after every time I modified them.
But I couldn't find a svn client like TortiseSVN and a directory/file comparison tool like WinMerge in mac.
So unfortunately, I have to use svn in command line.
And I have to use svn diff
command and check differences on the terminal screen.
I'm very afraid I will make more mistakes and bugs if I use command line instead of GUI.
Is it good I a idea to use command line instead of GUI?
And is it normal to compare every file I modified to the old ones with WinMerge after every time I modified them?
Or am i worrying too much?
Is there a application like WinMerge easily and quickly to compare files in 2 directories in mac?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的。
是的。
还。购买:http://www.syncrosvnclient.com/
Yes.
Yes.
Also. Buy this: http://www.syncrosvnclient.com/
通常我使用像 Eclipse 这样带有内置 svn 支持的 IDE。但当然您可以使用命令行客户端!但你不需要。我还在 Mac OS X 上尝试了 svnX 作为开源 svn GUI。
顺便说一句:不,我在提交之前不会比较所有文件,我运行所有测试!
Typically I work with the IDE like Eclipse with build-in svn support. But of course you can use the commandline client! But you need not. I also tried svnX on Mac OS X as an open source svn GUI.
By the way: No I do not diff all files before commit, I run all tests!
我在某种程度上与您相反:在日常工作中,我使用 Eclipse 的内置 SVN 支持。但是,如果我必须做的不仅仅是琐碎的任务(例如简单的提交或更新),我会切换到命令行。
我这样做是因为我从来没有花时间去了解如果我点击 GUI 工具中的这个或那个按钮到底会发生什么。但我确实知道命令行上发生了什么。
如果我使用 GUI 工具而不是命令行,我会犯更多错误吗?可能不会,一旦我尝试并了解了所有按钮的功能。
嗯,有
diff
...但是如果您只想找出哪些文件被修改,请使用
svn status
(或简称:svn st
)。这将为您提供当前目录中所有已修改、冲突、添加或删除的文件的列表。I'm in some way the oposite of you: In my daily work I use the build-in SVN support of Eclipse. But if I have to do more than trivial tasks (like a simple commit or update) I switch to the command line.
I do this because I never took the time to find out what's exactly happening if I click on this or that button in GUI-tools. But I do know exactly what happening on the command line.
Would I make more mistakes if I would use a GUI-tool instead of the command line? Probably not, once I tried out and learned the functions of all buttons.
Well, there's
diff
…But if you only want to find out which files were modified, use
svn status
(or short:svn st
). This gives you a list of all files in the current directory, that are modified, conflicted, added or deleted.你担心太多了。将其视为一个学习机会,学习如何使用 SVN 命令行工具。这里的其他人可以使用 Mac 的 GUI SVN 工具来参与。
You are worrying too much. Look at it as a learning opportunity, learning how to use the SVN commandline tools. And others here can chime in with GUI SVN tools for Mac.
如果您想保留 gui 的东西,我会引导您使用 IDE(IntelliJ IDEA 或 eclipse)。
您将获得与 svn 的集成,至少与与 Tortoise 的集成一样好。
您目前使用什么编辑器?您主要使用什么语言?
If you want to keep the gui stuff, I'd steer you towards an IDE (IntelliJ IDEA or eclipse).
You'll get integration with svn at least as good as you had with tortoise.
What are you currently using for an editor? What language(s) do you primarily work with?