bin/update-git: add script to install and update git from head