Move git branch pointer to another commit Posted on May 5, 2015 by Stefan Auw Yang | Leave a reply This is the command to update branch pointer to a specific commit: $ git update-ref refs/heads/[branch name] [commit hash]