如何查看分支git cmd
git branch #To see local branches, run this command
git branch -r #To see remote branches, run this command
git branch -a #To see all local and remote branches, run this command
如何在git中检查当前分支
git rev-parse --abbrev-ref HEAD
// To check the current branch