title: What is the difference between heroku git:clone -a <app> and git clone <heroku-git-url>?
body: <p>I deleted the local repo of my heroku app, then I wanted to clone it, so normally I use <code>git clone</code>, which worked in this case:</p>
  
  <p><code>git clone https://git.heroku.com/&lt;app-name&gt;.git</code>. However, in the settings of my app on Heroku's dashbord, it says I should use <code>heroku git:clone -a &lt;app-name&gt;</code> (this requires Heroku CLI which I already have installed.</p>
  
  <p>So far I have tried cloning the my heroku app repo in both of the ways mentioned (<code>git clone...</code> and <code>heroku:git clone -a...</code>). In both cases it worked and I got my source code properly cloned. </p>
  
  <p>In both cases <code>node_modules</code> was not cloned, which is understandable since I run <code>npm i</code> to install the needed ones specified in the <code>package.json</code> file. The question is: what is the difference between these two ways of cloning? I push my code using <code>git push heroku master</code> and that also works fine. My understanding so far is that there are no differences between the two mentioned ways of cloning a repo.</p>
  
  <p>*Please note that there is no github involved in this at all.</p>