title: ng is called instead of git when I use rebase or another flags
body: <p>Hello I have a machine in my job, with angular-cli and git installed.</p>
  
  <p>The problem is that when I try to do <code>git rebase</code>, or another "complex" git command, this returns the following:</p>
  
  <blockquote>
    <p>The specified command ("/home/user/project/.git/COMMIT_EDITMSG") is invalid. For a list of available options,
        run "ng help".</p>
    
    <p>Did you mean "make-this-awesome"?</p>
  </blockquote>
  
  <p>I try to solve this, uninstalling npm, and ng, but doesn't work.</p>
  
  <p>The <code>$PATH</code> is the following:</p>
  
  <blockquote>
    <p>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/user/Android/Sdk/platform-tools:/home/user/Android/Sdk/tools</p>
  </blockquote>
  
  <p>but when I use gitkraken for example this error doesn't happen</p>
  
  <p>Any idea that how to solve it?</p>