GIT删除remote/local tag
来源:互联网 发布:java 写入word文档 编辑:程序博客网 时间:2024/06/04 19:21
GIT的tag功能很方便我们查找某个版本,但是经常有时候打错了tag,并且上传到了remote,那么如何删除呢?
Windows下我们经常用的就是TortoiseGit,他确实可以删除本地local tag,但是很抱歉我没有发现他又删除remote tag的功能,看起来只能求助于GitBash。
GitBash中确实有删除local/remote tag命令。下面分别列一下删除local、remote tag的命令:
删除local tag "vXXXX"
#del local taggit tag -d vXXXX#list local taggit tag删除remote tag "vXXXX"
git push origin :refs/tags/vXXXX
用的正是
git push where-to-push source-ref:destination-ref
git push origin refs/tags/release-1.0:refs/tags/release-1.0
也就是用空的tag来替代remote tag vXXXX
0 0
- GIT删除remote/local tag
- git : Setup git remote on local drive
- Git: Delete a branch (local or remote)
- git 删除 remote branch索引
- git删除远程remote分支
- Git删除远程Tag、分支
- git删除tag和branch
- Git删除远程Tag、分支
- Git删除远程Tag、分支
- [Git]将remote branch强制更新到local branch
- Upload local Git repository to remote using IntelliJ IDEA plugin
- Push local non-git project to remote github repo
- Interactive between local repository and remote repository in git
- Track all remote git branches as local branches
- git分支建立删除,打tag
- git 命令: 删除远程 branch / tag
- Git查看、删除远程分支和tag
- git创建、删除分支和tag
- UITableView中heightForRowAtIndexPath 产生 EXC_BAD_ACCESS 的原因
- 杨辉三角
- poj2987 最大权闭合图问题
- Mat工具查看内存泄露和内存溢出情况
- 2015年大二上-数据结构-数组与广义表(2)-4.下三角矩阵的压缩存储及基本运算
- GIT删除remote/local tag
- error C2664: “int MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT)”:
- 自动释放内存的指针
- Set中的元素为什么不允许重复
- 青春生活的苦与甜
- 【HBOI2013】Eden的博弈树
- 为什么HTML5移动应用程序名声不好?
- mysql 创建用户和密码提示失败
- 10: const 常量