Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Egit: Configure upstream for push and pull

I am using Eclipse with Git. I have a local repo, and I want to push that to my private github repo (for safekeeping). I am working alone, so there are no commits from others.

Should I check "Configure upstream for push and pull" in the push dialog?

And if yes, should I check "Merge..." or "rebase"?

like image 264
mrd Avatar asked Nov 28 '14 16:11

mrd


People also ask

How do you push changes to upstream branch?

Create a new branch with the branch, switch or checkout commands. Perform a git push with the –set-upstream option to set the remote repo for the new branch. Continue to perform Git commits locally on the new branch. Simply use a git push origin command on subsequent pushes of the new branch to the remote repo.

How do I push upstream in Eclipse?

You can only push to upstream at the project/repo level. You can't push an individual file, like you can in CVS. To Push to Upstream, select the project/repo, select Team -> Push to Upstream.


1 Answers

You don't need to check this option necessarily. You can go to Git Repositories view, right click in your githup repo and do push or pull. Because you are working alone in almost all cases git is going to do fast-foward merge and you don't need to do anything.

like image 90
Manuel Morejón Avatar answered Sep 26 '22 02:09

Manuel Morejón