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

How to convert SVN tags to git tags?

From
SKSteve Keller <keller.steve@gmx.de>
Date
Jan 18, 2019, 12:50 UTC
Message-ID
<trinity-9f702373-ab1b-4c3e-9418-894ab0a6ef5a-1547815808777@3c-app-gmx-bs22>

After converting from SVN to git using git svn init + git svn fetch, my SVN tags appear as remote branches in git. I find many suggestions to convert these to git tags by calling git tag -a <tag-name> <branch-name> but this gives something like this

               C4
               |
               V
    T -> C3 -> C2
               |
               V
               C1

that is, I still have a branch with only 1 commit C3 and I have a tag T pointing to that commit. Also, T will have a current timestamp. I'd prefer to get

               C4
               |
               V
          T -> C2
               |
               V
               C1

where T takes the commit message and date from C3. How can I achieve that?

Steve
Next: Eric Wong
Message 1 of 2 in “How to convert SVN tags to git tags?”
  1. Steve KellerJan 18, 2019
  2. Eric WongJan 18, 2019

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.