git symbolic-ref --short HEAD 來獲取對應 HEAD 的分支名git
➜ mis-gulf git:(mis-lk) ✗ git symbolic-ref --short HEAD mis-lk
刪除本地分支bash
git branch -d <BranchName>
➜ driver-vehicle-manage git:(master) git branch -d fangyuan Deleted branch fangyuan (was 4565527c).