From: Sitaram Chamarty Date: Mon, 23 Feb 2009 15:50:51 GMT Subject: Re: how to reset to remote repo Message-ID: In-Reply-To: <20090223145722.GB7422@b2j> On 2009-02-23, bill lam wrote: > On Mon, 23 Feb 2009, Sitaram Chamarty wrote: >> git reset --hard origin/master >> >> This is a very simple question, and may be quicker on irc >> :-) > > Does it always work? For example if I already made several patches > interleaved with several fetch/update, or if I rebase to remove the > orgin/master? I'm not sure why a rebase of any kind would remove a remote brancg but you can always do 'git fetch' first if you accidentally messed up origin/master.