| --tags | 推送全部本地标签 |
|---|---|
| --follow-tags | 只推可达的附注标签 |
| 更精准 | git push origin v2.3.0 指名推送 |
常用示例
常用示例
git push origin --tags
git push --follow-tags
git push origin v2.3.0
git config --global push.followTags true发布常拆成两步:先推分支,再指名推标签,动作明确且便于审计。
推送标签到远端:--tags 推全部本地标签,--follow-tags 只推送被已推提交可达的附注标签,发布流程更可控。
| --tags | 推送全部本地标签 |
|---|---|
| --follow-tags | 只推可达的附注标签 |
| 更精准 | git push origin v2.3.0 指名推送 |
git push origin --tags
git push --follow-tags
git push origin v2.3.0
git config --global push.followTags true