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

Re: how to reset to remote repo

From
BLbill lam <cbill.lam@gmail.com>
Date
Feb 23, 2009, 14:57 UTC
Message-ID
<20090223145722.GB7422@b2j>
In-Reply-To
<slrngq56ql.q4m.sitaramc@sitaramc.homelinux.net>
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?

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩286 張祜  題金陵渡
    金陵津渡小山樓  一宿行人自可愁  潮落夜江斜月裡  兩三星火是瓜州
Previous: Sitaram ChamartyNext: Sitaram Chamarty
Message 4 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.