git branch | grep "*" | sed "s/* //" | awk '{printf $0}' | pbcopy
To directly copy the result to the pasteboard. Thanks to @olivier-refalo for the start…
git branch | grep "*" | sed "s/* //" | awk '{printf $0}' | pbcopy
To directly copy the result to the pasteboard. Thanks to @olivier-refalo for the start…