首页 > 其他分享 >git 版本打tag

git 版本打tag

时间:2022-11-29 15:15:49浏览次数:32  
标签:origin git tag 版本 push commit

git add .
git commit -m 'refresh v2.0.0'
git tag -a 2.0.0 -m ''
git push origin master
git push origin --tag
  • 给指定的某个 commit 号加 tag

打tag不必要在head之上,也可在之前的版本上打,这需要你知道某个提交对象的校验和

git tag -a v1.2 9fceb02 -m ""

标签:origin,git,tag,版本,push,commit
From: https://www.cnblogs.com/pleaseAnswer/p/16935415.html

相关文章