In eclipse, I have a project that connected with git repository. I can commit & remote push but the option: Team -> Remote -> "Configure Fetch from Upstream" and "Configure Push To Upstream" are disabled/grayed.
What actually happened??
How to enable them?
To Push to Upstream, select the project/repo, select Team -> Push to Upstream.
If you do a commit in one project and then accidentally push this commit, with bypassing code review, to another project, this will fail with the error message 'non-fast forward'. To fix the problem you should check the push specification and verify that you are pushing the commit to the correct project.
Click on the Window menu bar option, then choose Preferences. Type “git” in the search bar, then choose that path 'Team > Git > Configuration.
Here's what I did and this worked fine:
Because the remote was added under the project in question, each project can have its own upstream origin and they will not interfere (whereas the Window > Preferences solution is a global setting).
Based on your description of what you did, it appears you attempted this - but possibly did not use the name "origin" for the remote, which is absolutely necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With