开发者

Using git-svn, how do I dcommit tags?

开发者 https://www.devze.com 2023-04-10 04:28 出处:网络
I was using Git to retain a history of my project locally.I was later asked to commit the entire git project into a remote, empty svn project folde开发者_如何学Cr (the usual trunk, tags, branches stru

I was using Git to retain a history of my project locally. I was later asked to commit the entire git project into a remote, empty svn project folde开发者_如何学Cr (the usual trunk, tags, branches structure, in that case and spelling). I was able to commit to the trunk perfectly fine, but none of the tags seemed to have been dcommitted. Is there a way to commit tags, preferably through a single command?

P.S. I am using TortoiseGit, but command line is fine, too.


Git and SVN treat tags differently. Tags are a powerful feature in Git, but just a folder in SVN, much like how branches are.

So to create tags in SVN from git-svn, you have to create a branch (tag) in git-svn repo. Git tags will not be "dcommitted"

You can use git svn branch --tag or its shorthand git svn tag to create tags and then dcommit them.

Related question with detailed answer: Git-svn: create & push a new branch/tag?

0

精彩评论

暂无评论...
验证码 换一张
取 消