Hi everyone,

I'm trying to use QProcess with Git, I want to clone my repository to create a local copy on my computer using git clone

Typing this line in Terminal
Qt Code:
  1. git clone ssh://user@host:port/Template.git
To copy to clipboard, switch view to plain text mode 
works well

But in Qt, I still have a problem
Qt Code:
  1. QProcess process;
  2. process.start("git clone ssh://user@host:port/Template.git", QStringList());
  3.  
  4. if (!process.waitForStarted()) {
  5. qDebug() << "Error : " << process.errorString();
  6. return 1;
  7. }
  8. //process.waitForFinished(-1); // will wait forever until finished
To copy to clipboard, switch view to plain text mode 

Error console : Error : "No such file or directory"

Any help is very appreciated