开发者

committed to svn tag. What have I done? What should I do?

In a mom开发者_如何学Goent of inattention, I edited a file in an svn checkout from a tag, and committed it.

I don't even understand the resulting state of affairs. Is the tag now pointing to my edit? If it is, is there any way to 'fix' it other than to make another commit that undoes the previous?


A tag is no different to a branch which is no different to a copy of your trunk. There is nothing special about copying the contents of your trunk to a sub directory in "tags", it's just a copy. Of course, it doesn't take up much space on the server because SVN is clever and tracks history across copies.

Just undo your last commit using svn merge like described here: http://blog.johang.se/2009/03/revert-commit-in-subversion.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜