Update the active branch on a bare GIT repository

If you need to update the active branch on a bare GIT repository, you can refer to the following code:

git symbolic-ref HEAD refs/heads/mybranch