git集锦

git branch -v 查看本地分支

git branch xxx 创建本地xxx分支

git checkout xxx 切换到本地xxx分支

git branch -d xxx 删除本地分支

git push origin xxx 本地分支推送到远程

git push origin :xxx 删除远程分支

git tag xxx 创建本地tag

git checkout xxx 切换到tag

git push origin xxx 本地tag推送到远程

原文地址:https://www.cnblogs.com/happyday56/p/5583165.html