Replace git branch with git commit