你能用TortoiseGit与索引/暂存区进行交互吗? [英] Can you interact with the index/staging area with TortoiseGit?

查看:233
本文介绍了你能用TortoiseGit与索引/暂存区进行交互吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是向同事介绍Git,他们几乎完全是Windows用户,他们习惯于使用TortoiseCVS。我一直在使用Git大约一年,但我几乎完全使用Unix命令行界面。



所以我一直试图熟悉Windows GUI Git工具包括TortoiseGit。但在我看来,这不仅仅是Git命令行界面上的GUI皮肤,而且实际上完全抽象了一些东西,特别是索引。



例如,当我在Windows资源管理器中右键单击一个新的,未版本控制的文件时,我可以从TortoiseGit菜单中选择添加,然后提交此文件,但同样的菜单项从已经在Git中的文件中丢失,在这种情况下,I只有看到选项submodule add。



有没有办法与TortoiseGit进行交互?



我正在寻找类似于 git add git diff --cached git reset HEAD ,特别是。

这是给Google小组发送的一条消息,但它来自去年夏天。



我正在使用Tort oiseGit版本1.6.5.0和msysgit版本1.7.4.msysgit.0,如果它很重要。我几天前安装了这些软件,因此它们可能是最新的。

答案是:否,您不能



对于我来说,TortoiseGit是一种工具,您可以使用它从 转换为 您的情况 &ndash ; CVS to Git更容易(就像我在我的答案中写的是否TortoiseGit实际上让Git更容易使用,就像TortoiseSVN一样?)。但是一旦进行了转换并且你的同事们对Git更加熟悉,现在是时候提出真正的工具了。

与Git交互的最强大的工具是命令行。期。 Git Gui和 gitk 也可用,带来了一些便利,但缺乏资源管理器集成(至少在重叠方面)。但在多头开发框的时代:为什么不让Git Gui在一台显示器(用于一般管理的东西)上工作并在另一台显示器上工作?

我最近还在工作团队中介绍了Git。我们习惯了TortoiseSVN,所以我还向他们展示了如何使用Tortoise添加文件,如何提交等。但是在每张幻灯片中,我还注意到他们必须输入Git Bash才能获得相同的结果。这样,一旦他们有了更多的经验,他们可以拿出介绍幻灯片,并查看他们必须使用的命令。


I've been tasked with giving a presentation on Git to my colleagues, who are almost entirely Windows users who are used to using TortoiseCVS. I've been using Git for about a year, but I almost exclusively used the Unix command line interface.

So I've been trying to get familiar with the Windows GUI Git tools including TortoiseGit. But it seems to me that this is more than just GUI skin over the Git command line interface, and actually abstract some things completely away, specifically the index.

For instance, when I right click a new, unversioned file in the Windows Explorer, I can select "Add" from the TortoiseGit menu, and later commit this file, but this same menu item is missing from files which are already in Git, in which case I only see the option "submodule add".

Is there no way to interact with the index with TortoiseGit?

I'm looking for analogues to git add, git diff --cached, and git reset HEAD, specifically.

Here's a message to the Google group about this, but it was from last summer.

I'm using TortoiseGit version 1.6.5.0 and msysgit version 1.7.4.msysgit.0, if it matters. I installed these just a few days ago so they are probably reasonably up to date.

解决方案

The answer is: no, you can't.

For me, TortoiseGit is a tool that you can use to make the transition from – in your case – CVS to Git easier (like I wrote in my answer to Does TortoiseGit actually make Git a lot easier to use like TortoiseSVN?). But once the transition is made and your colleagues get more familiar to Git, it's time to come up with the real tools.

And the most powerful tool to interact with Git is the command line. Period. The Git Gui and gitk are also usable, bring some convenience but lack explorer integration (at least in terms of overlays). But in times with multi headed development boxes: why don't keep the Git Gui open on one monitor (the one used for general management stuff) and work on the other?

I recently also did an introduction to Git in my team at work. We were used to TortoiseSVN, so I also showed them how to add files using Tortoise, how to commit and so on. But on every slide, I also noted what they have to type in the Git Bash to achieve the same result. That way, once they're a little more experienced, they can take out the introduction slides and peek at the commands they have to use.

这篇关于你能用TortoiseGit与索引/暂存区进行交互吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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