git tag -d <tagname>git push origin :refs/tags/<tagname>
3. 重命名远程分支
在Git中重命名远程分支,其实就是先删除远程分支,然后重命名本地分支,再重新提交一个远程分支。
xiaosi@Q:~/code/qt$ git branch -av* dev 8d807de MOD master f600e50 code change during build remotes/origin/HEAD -> origin/master remotes/origin/dev 8d807de MOD remotes/origin/master f600e50 code change during build
1. 查看远程分支加上-a参数可以查看远程分支,远程分支会用红色表示出来:xiaosi@Qunar:~/code/qtown-score$ git branch -a FRESH-1606_qscore-20160503* dev master remotes/origin/20151225-qtown-score-FRESH-1236 remotes/origin/2016-