3

如果我能做类似的事情,我真的很想:

fossil commit --tag 0.1.2 release

并让化石同时添加0.1.2release作为标签。

我怎样才能做到这一点?

编辑:
我按照建议在窗户上建造了化石,它解决了这个问题。

4

1 回答 1

2

--tag您可以多次重复该选项,例如fossil commit --tag 0.1.2 --tag release

d:\test>fossil new test
project-id: 6cf7c1419425e47a71c35900179cb879a68fe495
server-id:  3a9e9a972204274d5a137b9e50df9a54928c4f96
admin-user: Eigenaar (initial password is "846ac5")

d:\test>fossil open test

d:\test>echo hello >world

d:\test>fossil add world
ADDED  world

d:\test>fossil commit --comment "First release" --tag 0.1.2 --tag release
New_Version: 761d2a6c3be8fc22413b5ddedbab46e5500b1b38

d:\test>fossil info
project-name: <unnamed>
repository:   d:/test/test
local-root:   d:/test/
user-home:    C:/Users/Eigenaar/AppData/Local
project-code: 6cf7c1419425e47a71c35900179cb879a68fe495
checkout:     761d2a6c3be8fc22413b5ddedbab46e5500b1b38 2012-07-09 21:13:17 UTC
parent:       1099fa0a0516d4b8a57306c4ee449f86a44f534d 2012-07-09 21:13:17 UTC
tags:         trunk, 0.1.2, release
comment:      First release (user: Eigenaar)
于 2012-07-09T21:15:38.683 回答