:note

すでにつけた git tag のメッセージを更新したい

git tag - How do I edit an existing tag message in git? - Stack Overflow

% git tag -n
v0.0.1          foo
v0.0.2          bar
v0.0.3          baz

% git tag v0.0.1 v0.0.1 -m poo
fatal: tag 'v0.0.1' already exists

% git tag v0.0.1 v0.0.1 -f -m poo
Updated tag 'v0.0.1' (was 2ad0e25)

% git tag -n
v0.0.1          poo
v0.0.2          bar
v0.0.3          baz
 
comments powered by Disqus
back to top