$git rev-parse --symbolic --branches
$git rev-parse --symbolic --tags
$git rev-parse --symbolic --glob=refs/*
refs/heads/master refs/remotes/origin/HEAD refs/remotes/origin/master
$git rev-parse HEAD
$git rev-parse master refs/heads/master
$git rev-parse $git rev-parse A^{} A^0 A^{commit}
GIT -> git rev-parse 笔记,布布扣,bubuko.com
原文:http://blog.csdn.net/feelang/article/details/25643589