[scripts] Add support for git in the release scripts.