Extracts the local branch name from a remote ref name like "origin/master" → "master". Falls back to the full name if no slash is found.
Extracts the local branch name from a remote ref name like "origin/master" → "master". Falls back to the full name if no slash is found.