# shellcheck shell=dash

___x_cmd_git_pushr(){
    # handle: parse options and argument
    local remote=origin
    local url; url="$(___x_cmd_git_meta_url "$remote")"

    ___x_cmd___git_origin push "$@"

    [ ! -d "$url" ] || (
        ___x_cmd_cmds cd "$url" || return
        git:info "Push from local source: $url"
        x git all push || {
            git:error "git all push fail at local repository: $url"
            return 1
        }
    ) || return
}
