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