Eclipse + Git - “分阶段”意思? [英] Eclipse + Git - what does "staged" mean?

查看:147
本文介绍了Eclipse + Git - “分阶段”意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SVN工作了一段时间后,我决定用我的新django项目尝试git,并将插件安装到eclipse中。我创建了一个新的pydev项目,并将django初始项目文件添加到src目录。然后我将项目共享到Git,添加并提交所有文件。现在我有奇怪的问题 - 除了manage.py之外的所有文件都是最新的,而manage.py有一个奇怪的图标表示它是分期的。这是什么意思?我试图google,但没有成功。 :(



事先感谢

解决方案

已添加到所述



索引有时也称为分期区域。


我倾向于将其视为下一个补丁:

您可以与工作副本中的更改交互地构建它,并可以稍后查看和修改它。

当您对在分期区域中排列的内容感到满意时,它基本上相当于一个差异,你提交它
而且因为你的提交不再直接绑定到你的工作副本,你可以自由地在文件$ / b>




如果您可以查看最新的更改egit 的日志(eclipse Git插件)你会看到他们仍然是如何管理分阶段文件,最近你的egit插件是更好的;)


After working for some time with SVN I decided to try git with my new django project and installed the plugin for it into eclipse. I made a new pydev project and added django initial project files to the src directory. Then I "shared" the project to Git, added and commited all files. Now I have strange problems - all files except "manage.py" are "up to date" and manage.py has a strange icon that means it is "staged". What does this mean? I tried to google for it, but without success. :(

Thanks beforehand.

解决方案

It means your file has been added to the index.

As described in The Thing About Git

The Index is also sometimes referred to as The Staging Area.

I tend to think of it as the next patch:
You build it up interactively with changes from your working copy and can later review and revise it.
When you’re happy with what you have lined up in the staging area, which basically amounts to a diff, you commit it. And because your commits are no longer bound directly to what’s in your working copy, you’re free to stage individual pieces on a file-by-file, hunk-by-hunk basis.


If you look to the latest change logs of egit (the eclipse Git plugin), you will see they are still fiddling with how "staged" files are managed, se the more recent your egit plugin is, the better ;)

这篇关于Eclipse + Git - “分阶段”意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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