Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Committed changes to branch, now won't let me push upstream
Committed changes to branch, now won't let me push upstream [message #1404123] Tue, 29 July 2014 18:06 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
I've been making a lot of changes in my cloned github project (from the "gradle" project) on a branch. Today I committed the changes, without doing a push. I then tried to push the changes to my upstream github repo, but it's not giving me the option. The "Push to Upstream" option is greyed out. Why would this happen?

The other thing that also confuses me is that I can't even find my cloned github project right now. It also seems like the url for my cloned project in Eclipse is pointing to the "main" project, not the project that I cloned (https://github.com/gradle/gradle.git).
Re: Committed changes to branch, now won't let me push upstream [message #1404277 is a reply to message #1404123] Wed, 30 July 2014 20:46 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I guess your local branch doesn't track a remote branch so EGit doesn't know what upstream should be.
Try to configure your branch to track the branch you are aiming for following [1] and try again.

Maybe you cloned from the original github project instead of from your fork ? In that case update the
configuration of your local clone and change the URL of remote "origin" to the URL of your fork on
github.

[remote "origin"]
url = https://github.com/user/path/to/repo.git

[1] https://wiki.eclipse.org/EGit/User_Guide#Configure_Branch_Dialog
Re: Committed changes to branch, now won't let me push upstream [message #1404279 is a reply to message #1404277] Wed, 30 July 2014 21:00 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
I did make some progress with this.

I concluded that I had never done the fork, so I must have cloned from the master.

So, I forked the project and attempted to change the repo url in the project. I think I had trouble if I only changed the property value in the project preferences. I later ran "git remote set-url origin <url>" on the command line, and that appeared to work. I was able to do "push branch" from EGit and moved forward.
Previous Topic:GitHub Wiki and jGit
Next Topic:How to identify Committed but unpushed files
Goto Forum:
  


Current Time: Fri Apr 19 14:23:44 GMT 2024

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

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

Back to the top