Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » How can I Fast-forward?
icon8.gif  How can I Fast-forward? [message #1066057] Sat, 29 June 2013 11:08 Go to next message
Eclipse UserFriend
Hi!

I've just done a Pull of code from GitHub of all the changes I've done on my other computer. The project now has a down-arrow and an 8 next to it, which I assume means that there are 8 commits in the repository ahead of the current state of my "head".

How do I tell it to fast-forward and move master and HEAD to the most-recent commit (which is origin/master and FETCH_HEAD)?

This seems like fairly obvious functionality - to pick up the latest version of the code from the remote repository, but I'm darned if I can work out what I'm supposed to do.

What am I missing?

Thanks!
Re: How can I Fast-forward? [message #1066356 is a reply to message #1066057] Tue, 02 July 2013 06:07 Go to previous messageGo to next message
Eclipse UserFriend
Did you actually do a "Pull" (rather than a "Fetch") using Egit? That works for me. "Fetch", on the other hand, will update your local clone, but not merge the newly downloaded commits into your working copy.

Note that your use of the term "fast forward" might indicate some confusion. Do you actually mean "update my local clone and working copy"?? This might be done by a fast-forward, or it might require a merge. A fast-forward is a very specific type of update. it is not a general term for "update to the latest".
Re: How can I Fast-forward? [message #1078094 is a reply to message #1066057] Fri, 02 August 2013 10:34 Go to previous message
Eclipse UserFriend
Hi Andrew,

just select the most-recent commit (which is origin/master and FETCH_HEAD) in the history view and then "Merge" in the context menu.

Or select origin/master in the Git repositories View and then also Merge.

Normally, when you pull, the merge should have been done also (or a rebase, if this is configured the local branch). How did you create the local branch?

Fast Forward is a special case of Merge when the the current HEAD is already in the history of the commit you want to merge into.

Stefan
Previous Topic:First time checkout of remote tracking branch
Next Topic:How to view an old version of a non-text file?
Goto Forum:
  


Current Time: Mon Jun 30 18:02:16 EDT 2025

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

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

Back to the top