${PRINT_USAGE:-:} <<EOF
    push              Issues 'git push -u origin <environment>' across current environment if changes
                        are committed.
EOF

# push branch to origin if repo has committed changes from master
command_push() {
    local group=$context
    debug "$FUNCNAME $group"
    valid_env_name $context || error "Invalid environment to push. '${context}' is protected or otherwise invalid"
    for mod in $(mods_in_group $group) ; do
        pushd $workspace/$mod || error "unable to cd to mod dir $workspace/$mod?"
        local defb=$(default_branch_name $mod)
        hash1=$(git rev-parse $group)
        hash2=$(git rev-parse $defb)
        [[ "$hash1" != "$hash2" ]] && git push -u origin $group
        popd
    done
}
return 0
