Re: how to reset to remote repo
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- Feb 23, 2009, 15:50 UTC
- Message-ID
- <slrngq5her.6l3.sitaramc@sitaramc.homelinux.net>
- In-Reply-To
- <20090223145722.GB7422@b2j>
On 2009-02-23, bill lam <cbill.lam@gmail.com> wrote:
Show 9 quoted lines
> 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.