git检出远程分支
git checkout -b localBranch remote/branchName
回退到制定版本
1 | git log #查看版本提交日志 |
列出远程tag列表
1 | git ls-remote --tag |
检出所有远程分支
1 | for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do |
删除所有远程tag
1 | # xargs -p 可打印出将执行的命令 |