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
Jacob Helwig <jacob.helwig@gmail.com>
Date
Dec 29, 2008, 22:04 UTC
Message-ID
<8c9a060812291404m304e1920yd5ba7e40a6098b30@mail.gmail.com>
In-Reply-To
<cd7145c4-a4bb-4ef6-95db-7c4058b6774c@m16g2000vbp.googlegroups.com>
On Mon, Dec 29, 2008 at 13:39, davetron5000 <davetron5000@gmail.com> wrote:
Show 18 quoted lines
> So, my repo is in a weird state.  I have committed my changes to svn
> via git svn dcommit, and it appears that the svn repository has all my
> changes.
>
> However, git svn rebase fails with conflicts, on almost every single
> commit I've made.  I think that ultimately, I merged a branch in
> numerous times and git seems confused.  BUT, I don't really care about
> preserving that; I just want my master branch to be clean.
>
> 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.  i.e.
> treat things the same as if I had just done a clean git svn clone.
>
> --
> 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
>

git checkout local-branch-you-want-to-fix git reset --hard name-of-your-git-svn-branch (probably trunk, or <prefix>/trunk, if you setup git-svn with the --prefix=<prefix>/ option).

This will wipe out anything you have in local-branch-you-want-to-fix, and reset it to the same state that name-of-your-git-svn-branch is in.

-Jacob
Previous: davetron5000Next: Boyd Stephen Smith Jr.
Message 2 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.