loading...

Discussion on: My Personal Git Tricks Cheatsheet

Collapse
slash5toaster profile image
Clyde

also if you've got git > 2 this works

git status --porcelain=v2 --untracked-file=no --branch \
| grep branch.head \
| cut -d ' ' -f 3