def run_command(git_cmd, &block)
      if block_given?
        return IO.popen(git_cmd, &block)
      else
        return `#{git_cmd}`.chomp
      end
    end
def run_command(git_cmd, &block)
      if block_given?
        return IO.popen(git_cmd, &block)
      else
        return `#{git_cmd}`.chomp
      end
    end
Executes the given git command

 @param [String] git_cmd the CLI command to execute
 @yield the block to run in the context of running the command. See {IO#popen}

 @return [String] the output of the git command