It would be nice to include a comment here that indicates what the script is doing and how to call it.  

One could also worry about whether the git command failed, or whether only one argument was supplied (in which case it would not do the right thing.)  But since the script doesn't have any side effects, I don't think that is necessary.