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

Re: how to reset to remote repo

From
Dilip M <dilipm79@gmail.com>
Date
Feb 23, 2009, 12:14 UTC
Message-ID
<c94f8e120902230414v33d36acelc3dc39861646539a@mail.gmail.com>
In-Reply-To
<20090223105546.GA7425@b2j>
git reset --hard HEAD
-- BR, Dilip
On Mon, Feb 23, 2009 at 4:25 PM, bill lam <cbill.lam@gmail.com> wrote:
Show 17 quoted lines
> I cloned some public git repos and made some local patches. Later I
> pulled updates again and that merged with my patches. Now I want to
> throw away my patches, how do I get a clean working repo that is a
> 100% clone of the remote repo?
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> 唐詩285 張祜  集靈臺二首之二
>    虢國夫人承主恩  平明騎馬入宮門  卻嫌脂粉污顏色  淡掃蛾眉朝至尊
> --
> 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: bill lamNext: Sitaram Chamarty
Message 2 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.