git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* How to convert SVN tags to git tags?
@ 2019-01-18 12:50 Steve Keller
  2019-01-18 22:31 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Keller @ 2019-01-18 12:50 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to convert SVN tags to git tags?
  2019-01-18 12:50 How to convert SVN tags to git tags? Steve Keller
@ 2019-01-18 22:31 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2019-01-18 22:31 UTC (permalink / raw)
  To: Steve Keller; +Cc: git

Steve Keller <keller.steve@gmx.de> wrote:
> 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

Hi Steve, instead of an annotated tag ("-a"), you can use a
lightweight tag by omitting the "-a".

Fwiw, I chose to map SVN "tags" to remote branches in git since
some projects I followed back in the day had moving tags in SVN.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-18 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-18 12:50 How to convert SVN tags to git tags? Steve Keller
2019-01-18 22:31 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).