从IDE外部进行版本控制是一个很好的做法吗? [英] Is it a good practise to do version control from outside the IDE?

查看:162
本文介绍了从IDE外部进行版本控制是一个很好的做法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经听到同行的不止一次的情况,建议不要在你写的IDE的版本控制你的代码。我已经看到他们在eclipse,intelliJ等上开发,但是从命令行或独立客户端执行版本控制(在我目前的情况下,GIT),而不是使用随IDE可用的相应插件。

I have heard from my peers in more than once occasion that it is "advised" not to do version controlling of your code from within the IDE where you write it. I have seen them developing on eclipse, intelliJ etc but doing version controls (in my current scenario - GIT) from command-line or standalone clients as opposed to using the corresponding plugins readily available for the IDE.

尽管我在Eclipse中使用了版本控制插件,从来没有发现任何问题,我想知道一般规范是什么,为什么?

Though I have used version control plugins in Eclipse and never found any issues, I would like to know what is the general norm and why?

推荐答案

我不认为这是一个普遍的规范。这个问题的答案是非常主观的。

I don't think that there's a general norm. The answer to the question is highly subjective.

我个人不使用任何IDE集成(甚至不是GUI工具,除了内置的 git gui gitk ),因为我的经验告诉我,这些工具的行为与命令行版本不同,和/或不提供完整的功能在命令行上:

I personally don't use any IDE integration (not even a GUI tool except the builtin ones git gui and gitk) because my experience told me that these tools behave different than the command line version and/or don't provide the full functionality available on the command line:

  • Does netbeans ignore my git pre-commit hook?
  • Can you interact with the index/staging area with TortoiseGit?
  • Does TortoiseGit actually make Git a lot easier to use like TortoiseSVN?

另一件事是,您对版本控制工具的了解与您的IDE绑定。也许你想为其他的东西设置一些版本管理,比使用Eclipse编辑的源(例如你的dotfiles)。有一天,您可以切换IDE,放置Eclipse并开始使用Visual Studio。

Another thing is that your knowledge about your versioning tools is bound to your IDE. Maybe you want to set up some version management for other things than the sources you edit with Eclipse (your dotfiles, for example).

那么你不必仅仅学习Visual Studio,而且还需要学习VS中的Git集成。

Or one day you switch your IDE, drop Eclipse and start using Visual Studio. Then you don't have to learn only Visual Studio but in addition you need to learn the Git integration in VS too.

我认为与上面写的相比,没有严重的优势会使IDE中的VCS工具的使用合法。

I think compared with what I've written above, there are no serious advantages that would legitimate the usage of VCS tools from inside the IDE.

所以,IMO 从IDE 内部的进行版本控制是不好的做法始终 从外部完成

So, IMO it's a bad practice to do version control from inside the IDE and it should always be done from extern.

这篇关于从IDE外部进行版本控制是一个很好的做法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆