git clone <git url>
$git branch -d <local branch name>
$git branch -D <local branch name>
$git branch -a
$git push origin :<remote branch name>
git v1.7.0之后
$git push origin --delete <remote branch name>
$git push origin <local branch name>
把本地tag推送到远程服务器上
$git push --tags
获取远程tag
$git fetch origin tag <tag name>
原文地址:http://www.cnblogs.com/Mingxx/p/3766441.html