login
Header Space

 
 

Re: git pull/merge master on other branch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: SungHyun Nam <goweol@...>
Cc: <git@...>
Date: Friday, May 9, 2008 - 2:24 am

On Friday 09 May 2008, SungHyun Nam wrote:

You can't; merging requires use of the working tree (to resolve conflicts).

However, what you can do is make a local clone of your project (cheap,
because it just hardlinks files from the original repo), and checkout the
master branch in the clone, perform the merge (after having set up the same
origin and retrieved its contents), and then fetch (or push) the result back
into the original repo (remember: "fetch" instead of "pull", since the
latter will initiate a merge with your current branch).


Have fun! :)

...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net
--
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:
git pull/merge master on other branch, SungHyun Nam, (Fri May 9, 1:26 am)
Re: git pull/merge master on other branch, Kelvie Wong, (Mon May 12, 11:12 pm)
Re: git pull/merge master on other branch, Johan Herland, (Fri May 9, 2:24 am)
Re: git pull/merge master on other branch, Kevin Ballard, (Fri May 9, 1:16 pm)
Re: git pull/merge master on other branch, Brandon Casey, (Tue May 13, 1:24 pm)
Re: git pull/merge master on other branch, SungHyun Nam, (Mon May 12, 10:22 pm)
Re: git pull/merge master on other branch, Lars Hjemli, (Tue May 13, 12:08 pm)
Re: git pull/merge master on other branch, SungHyun Nam, (Fri May 9, 4:28 am)
Re: git pull/merge master on other branch, Johan Herland, (Fri May 9, 5:06 am)
speck-geostationary