git branch --current?
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 17, 2010, 14:43 UTC
- Message-ID
- <fcaeb9bf1003170743kc347d53jefe41039e3b9a69a@mail.gmail.com>
I use "git branch" when I need to know the current branch. But I have many branches, looking for the star is "time consuming". I'd rather have something like pwd, just print the current branch name and that's all. A bit more information about current branch wouldn't hurt, as long as the branch name is printed at a fixed location.
What command do you use to know what branch you are on?
-- Duy