使用 Visual Studio 2010 揭开源代码版本控制的神秘面纱

发布于 2024-09-25 09:41:53 字数 2524 浏览 3 评论 0原文

更新

因此,在我原来的问题中,我只是感到沮丧,因为我被迫使用源代码管理,但我就是无法理解它(在使用 SVN 和 VSS 之后)。

我闲逛了一下,访问了几次后,决定阅读http://www.hginit.com 这实际上是我的救赎。

DCVS(至少对我来说是一个单一的开发者)很有意义,而且我理解源代码控制。 DCVS 是 GIT 和 Mercurial 运行的方式/哲学,我猜它们都非常相似,但是,GIT 不是在 Windows 上发展起来的,但是 Mercurial 有很好的工具@grenade 在他的回答中提到了所有这些。安装过程非常顺利,我现在工作得非常愉快。

另外,我使用 FogBugz ,它是基于 Mercurial 的,非常棒! =D

阅读http://www.hginit.com整个内容,即使您认为它可能不适用给你!

查看 Linus Torvalds 在 Git 上的演讲。 - 通常很有趣,并且您了解 DCVS 是什么。这篇 Stackoverflow 博客文章可能会有所帮助。

请注意,http://www.codeplex.comhttp://code.google.com/projecthosting/ 均支持 Mercurial

另请参阅:Mercurial 与 Visual Studio 2010 的白痴清单


原始问题:
主啊,我所要求的只是一些简单的软件来维护我的文件版本并恢复到我想要的版本。

就我个人而言,我觉得只要使用一个不错的备份工具,我就必须在需要时将文件夹的副本压缩到另一个驱动器上。但他们说我必须使用一些源版本控制。

已经发布了我在 SVN 中遇到的问题。现在是 GIT。

我从这里下载了 msysgit 预览版 1.7.2.3 http://code.google.com/p/msysgit/ 然后来自 code.google.com 的 GIT 扩展 然后我从这里下载了 p4merge : http://www.perforce.com/perforce/downloads /index.html

我有 Win7 x64 和 VS2008。我在 VS 中看到了 GIT 菜单,但什么也没发生!?天啊!

最糟糕的是,文档在哪里?什么是 Bash、Stash、Cherry Pick?我在 VS GIT 工具栏或 VS 中的 Git 菜单上单击的任何内容都不起作用!我下载了完整的设置:http ://code.google.com/p/gitextensions/downloads/detail?name=GitExtensions203SetupComplete.msi&can=2&q= 但我在我的电脑上没有看到 KDiff3? p4merge 本身有它自己的问题,当我想要所有内容都在本地时,它会要求我提供一些服务器地址进行配置!

有人可以建议一些非常简单的东西吗 我不做大型项目,大部分都是在家庭公用事业中,我是一个单人团队,我喜欢保持简单。

注意:我需要一些可以与 Win7x64 和 VS2010 配合使用的东西,vs2008 在我的家用电脑上,但 VS10 在开发盒上

Update

So in my Original question I was just frustrated because I was being pushed to use source control but I just couldn't understand it (after using SVN & VSS).

I meandered a little bit, and after visiting it a few times, decided to read http://www.hginit.com and it practically was my salvation.

DCVS, (atleast for me being a single dev) just makes sense, and I understood source control. DCVS is the way/philosophy that both GIT and Mercurial Operate on, I guess they both are very similar, however, GIT is not evolved on Windows, Mercurial however has good tools @grenade has mentioned all of them in his answer. The installs were painless and I'm working very happily now.

Also, I use FogBugz which is mercurial based and pretty awesome! =D

Read http://www.hginit.com the WHOLE thing, even if you think it might not apply to you!

Check out Linus Torvalds Talk on Git. - Generally amusing and you understand what DCVS is. This Stackoverflow Blog article might be helpful.

Note, http://www.codeplex.com and http://code.google.com/projecthosting/ both support mercurial

Also see : idiots checklist for mercurial with visual studio 2010


Original Question:
Lord all I ask is for some simple software that will maintain versions of my files and revert to ones I want.

Personally, I felt like just using a nice backup tool I have to just zip up a copy of my folder on another drive when I want. But they said I Have to use SOME source versioning.

Already posted the problem I had with SVN. Now its GIT.

I downloaded msysgit preview 1.7.2.3 from here http://code.google.com/p/msysgit/
Then GIT Extensions from the code.google.com
Then I downloaded p4merge from here : http://www.perforce.com/perforce/downloads/index.html

I have Win7 x64 with VS2008. I see the GIT menu in VS, but nothing happens!? Jeez!

Worst, where are the docs? Whats Bash, Stash, Cherry Pick? Anything I click on the VS GIT toolbar or the Git Menu in VS does not do anything! I downloaded the complete setup : http://code.google.com/p/gitextensions/downloads/detail?name=GitExtensions203SetupComplete.msi&can=2&q=
BUT I dont see KDiff3 anywhere on my pc? p4merge itself has its own problems asking me for some server address for config when I want everything local!

Could someone PLEASE suggest something hideously simple
I dont do big projects, mostly all in house utilities, I'm a one man team and I like to keep it simple.

NOTE: I need something that works with Win7x64 and VS2010, vs2008 is on my home PC but VS10 on the dev box

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

巡山小妖精 2024-10-02 09:41:53

hginit 是一个非常简单的教程,它将向您展示一种管理源代码的简单方法。

Git 是个好工具,但我不使用它,所以我不知道出了什么问题。我使用 MercurialTortoiseHGVisualHGBitBucket。 Joel 在 hginit.com 上的教程解释了您需要了解的所有内容。

hginit is a very simple tutorial that will show you a simple way to manage your source code.

Git is a good one but I don't use it so I don't know what's gone wrong. I use Mercurial with TortoiseHG, VisualHG and some private repositories on BitBucket. Joel's tutorial at hginit.com explains everything you need to know.

冷情 2024-10-02 09:41:53

我第一次对安装过程感到困惑。卸载 Git、P4Merge 和 Git 扩展,然后再次运行“完整”MSI。在安装程序的第二页上,按“安装 Git”按钮,完成后,按“安装 Kdiff”按钮并接受默认值,然后继续安装 Git 扩展。您可以接受每个选项的默认值。

然后,所有部件将自动配置为协同工作,并且按钮和上下文菜单项将起作用。

好的版本控制系统本质上稍微复杂,因为它们执行非常复杂的工作,因此您必须以与任何复杂工具相同的方式处理它们 - 从一些简单的功能开始,暂时忽略所有其他内容。 Git 扩展包括一本向您展示基础知识的手册(开始 > 程序文件 > Git 扩展 > 用户手册)。

Mercurial 更友好一点,但我不愿意推荐它,因为(遗憾的是)它似乎已经输掉了人气竞赛。如果您想与其他开发人员在公司环境之外的项目上合作,那么您使用 Git 的可能性会越来越大。

I got confused about the installation process myself the first time around. Uninstall Git, P4Merge and Git Extensions, then run the "complete" MSI again. On the second page of the installer, press the Install Git button, then once that is complete, press the Install Kdiff button and accept the defaults, then proceed with the Git Extensions. You can accept the default on every option.

All the parts will then be automatically configured to work together, and the buttons and context menu items will work.

Good version control systems are inherently slightly complex because they do a very sophisticated job, so you have to approach them in the same way as any complex tool - start with a handful of simple functions and ignore all of the other stuff for now. Git Extensions includes a manual that shows you the basics (Start > Program Files > Git Extensions > User Manual).

Mercurial is a little more friendly, but I'm reluctant to recommend it because (sadly) it seems to have lost the popularity contest. If you want to work with other developers on projects outside of a corporate environment, it's increasing likely that you will be using Git.

喜爱皱眉﹌ 2024-10-02 09:41:53

TortoiseGit 非常简单。

Bash 只是在命令行中使用 git。
当你刚把脚弄湿时,我不会太在意Stash/Cherry pick。

安装 TortoiseGit 后,您可以在 Windows 资源管理器中管理您的存储库。创建存储库并向其提交第一个(和下一个)版本是“轻而易举”的事情。

TortoiseGit is hideously simple.

Bash is just using git at the command line.
I wouldn't bother to much with Stash/Cherry pick when you are just getting your feet wet.

Once you've installed TortoiseGit, you can administer your repository in Windows Explorer. Creating a repository and commiting your first (and next) version to it is "a snap".

扛起拖把扫天下 2024-10-02 09:41:53

有人尝试过SmartGit吗?

我确信,就转换为 Git(而不是 SourceSafe)而言,只要去做就可以了,最终会变得更容易一些。但是,它的 Linux 根源是一个障碍。我想要一本关于如何在 Windows 上使用 Git 的真正简单且最新的书籍或在线文档!

Has anyone tried SmartGit?

I'm sure that as far as converting to Git (instead of say, SourceSafe), it's a just do it and eventually it'll get easier kinda deal. But, it's Linux roots are an obstacle. I'd like a real straightforward and uptodate book or online doc on How To Use Git on Windows!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文