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

Re: git svn rebase totally confused; just need some sorta reset

From
Boyd Stephen Smith Jr. <bss@iguanasuicide.net>
Date
Dec 29, 2008, 22:04 UTC
Message-ID
<200812291605.00112.bss@iguanasuicide.net>
In-Reply-To
<cd7145c4-a4bb-4ef6-95db-7c4058b6774c@m16g2000vbp.googlegroups.com>
On Monday 2008 December 29 15:39:45 davetron5000 wrote:
> Is there a way I can basically say:  commit XXX is the same as the
> current HEAD of SVN, so treat things as if that's the case.

No, commits are immutable and their "name" is based on their contents. However, if you've fetched the current HEAD of SVN, you've already got a commit that corresponds (roughly) to the HEAD of SVN.

> i.e. 
> treat things the same as if I had just done a clean git svn clone.

On my git-svn created repository, I have a special ref "git-svn" that appears to refer to the "HEAD of SVN" commit. ("git branch -a" shows it.) If that's also the case with you:

git branch -m master master.save git checkout -b master git-svn # Make sure you are seeing what you want. git branch -D master.save

should get you to where you want.
Heck, "git reset git-svn" might work.
-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss@iguanasuicide.net                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     
Previous: Jacob Helwig
Message 3 of 3 in “git svn rebase totally confused; just need some sorta reset”
  1. davetron5000Dec 29, 2008
  2. Jacob HelwigDec 29, 2008
  3. Boyd Stephen Smith Jr.Dec 29, 2008

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.