Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse + Git - what does "staged" mean?

Tags:

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.

like image 520
freiksenet Avatar asked Mar 24 '09 07:03

freiksenet


People also ask

What is staged mean in git?

A staging step in git allows you to continue making changes to the working directory, and when you decide you wanna interact with version control, it allows you to record changes in small commits.

How can you tell git is staged?

simply typing git status gives you a list of staged files, a list of modified yet unstaged files, and a list of untracked files.

What is staged changes and changes in git?

Staged changes are a lot like unstaged changes, except that they've been marked to be committed the next time you run git commit . Upon your next commit, your staged changes become part of your Git history. git status will no longer list them as changes since they're part of your last commit now.


1 Answers

It means your file has been added to the index.

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 ;)

like image 118
VonC Avatar answered Oct 02 '22 18:10

VonC