git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: bill lamNext: bill lam
Message 5 of 6 in “how to reset to remote repo”
  1. bill lamFeb 23, 2009
  2. Dilip MFeb 23, 2009
  3. Sitaram ChamartyFeb 23, 2009
  4. bill lamFeb 23, 2009
  5. Sitaram ChamartyFeb 23, 2009
  6. bill lamFeb 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.