Im trying to get on GIT POST-RECEIVE command the local branch name of computer, i tried the code "READ REF" but it outputs "ref/heads/branchname" i only want the branchname, can someone please help me trim using the output using bash command or is theres a specific code in git to get the local branchname of pushing user.
Thanks