Split script into two separate ones. gitam is for merging into master only (and has shorter syntax as a result) while gitao is for merging into a non-master repo.