function git(varargin)
  line = "";
  for i=1:length(varargin)
    w = string(varargin(i))
    line = line + w(1) + " ";
  end
  commandline = "git " + line;
  if getos() == "Windows" then
    [result, s] = dos(commandline);
  else
    [result, s] = unix_g(commandline);
  end
  if s == %f then
    if getos() == "Windows" then
      [result, s] = dos(commandline + "1>&2");
    end
  end
  
  for i=1:size(result, "*")
    mprintf("%s\n", result(i));
  end

endfunction
