Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Git Staging not populating with changes (they are History)(I have made changes and have them in History; however, no changes are available in the Git Staging)
Git Staging not populating with changes (they are History) [message #1866297] Sat, 25 May 2024 20:42 Go to next message
Eclipse UserFriend
Hi,

I am new to this forum so sorry if this post is not in the correct place.

I have down loaded a new version (2024-03 (4.31.0)) and imported my old project from some years ago (2022). I now want to push changes to my GitHub repository. When I go into Window --> Perspective --> Open Perspective --> Other --> Git and open the History tab my revisions are present. However, when I open the 'Git Staging' tab there are not any changes to push to my BitBucket repository. I have attached images.

I am a citizen developer and have not done this for a few years. So please provide step by step instructions and do not assume knowledge.

Kind regards,

Glyn
Re: Git Staging not populating with changes (they are History) [message #1866306 is a reply to message #1866297] Sun, 26 May 2024 13:21 Go to previous messageGo to next message
Eclipse UserFriend
The history view shows commits. The staging view shows uncommitted changes, either unstaged or staged. If you have no uncommitted changes, the staging view will show no unstaged or staged changes.
Re: Git Staging not populating with changes (they are History) [message #1866330 is a reply to message #1866306] Mon, 27 May 2024 03:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi David,

I have made a number of changes to a number of files. So I would expect these files to appear in the Git Staging area, as they are uncommitted. How do I get these changed files to appear in the Git Staging area so I can commit them please?

Kind regards,

Glyn
Re: Git Staging not populating with changes (they are History) [message #1866333 is a reply to message #1866330] Mon, 27 May 2024 04:26 Go to previous messageGo to next message
Eclipse UserFriend
It seems to me your History view is showing the local history, not Git history and the Git Staging view talks about an unborn branch so you have no commits. I suspect your files are not physically located in the folder of the git clone but likely just in the workspace.

What's on the containing projects's context menu under Team -> ? If it has "Share Project..." then you haven't placed the project within a Git repository's folder.
Re: Git Staging not populating with changes (they are History) [message #1866369 is a reply to message #1866333] Tue, 28 May 2024 03:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

That did it. I now have my changes in the Git Staging area. However, when I commit and push I get the error "master --> master [rejected - non-fast-forward]. Please see attached. And my changes are not in the Git Staging any more.

Kind regards,

Glyn
Re: Git Staging not populating with changes (they are History) [message #1866372 is a reply to message #1866369] Tue, 28 May 2024 03:46 Go to previous message
Eclipse UserFriend
Hi Ed and David,

I did a pull and then another 'Commit and Push' and it now seems to work.

Thank you very much for your help :-)

Kind regards,

Glyn
Previous Topic:Enquiry on JGit vs Git and security vulnerabilities
Next Topic:Simple "Assume Unchanged" example raises questions/suggestions
Goto Forum:
  


Current Time: Sat May 24 23:04:28 EDT 2025

Powered by FUDForum. Page generated in 0.03416 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top