Copy of git-upm from Tools/gitutils.

@adammedows 
Here it is. I think this is my first pull request on github.com.

Roger