- How to detect to which branch the current folder belongs to?
- Open CMD and browse to the desired folder
- Run
git name-rev --name-only HEAD
Note: There are two dashes — before “name-only…”
git name-rev --name-only HEAD
Note: There are two dashes — before “name-only…”