def build_git_cmd(args)
      raise ArgumentError.new('The args array can not contain an array') if args.any? { |a| a.is_a?(Array) }

      [binary_path, *global_opts, *args].map { |e| e.to_s }
    end
Build the git command line from the available sources to send to `Process.spawn`
@return [Array<String>]
@api private