Re: How to pull remote branch with specified commit id?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Tuesday, January 13, 2009 - 2:16 am

Emily Ren wrote:

You need to fetch it first, and then merge the commit you want. The
tools operating the fetching protocol only use refs, so if you want
to fetch (or pull) a specific version that has neither a tag nor a
branch head pointing to it, you'll have to write a new tool for that.

The end-result of the following command will be, barring side-effects
in the remote-tracking branches, identical to what you're trying to
do though:
git fetch remote && git merge $commit_id

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to pull remote branch with specified commit id?, Emily Ren, (Tue Jan 13, 2:08 am)
Re: How to pull remote branch with specified commit id?, Andreas Ericsson, (Tue Jan 13, 2:16 am)
Re: How to pull remote branch with specified commit id?, Johannes Sixt, (Tue Jan 13, 2:43 am)
Re: How to pull remote branch with specified commit id?, Johannes Sixt, (Wed Jan 14, 12:01 am)
Re: How to pull remote branch with specified commit id?, Johannes Sixt, (Wed Jan 14, 12:02 am)