title: Heroku PHP with bitbucket-pipelines.yml - git command not found
body: <p>I spent hours and only found this <a href="https://stackoverflow.com/questions/46632283/bitbucket-pipelines-issues-with-git-commands">thread</a>, but the solution didn't help me.</p>
  <h1>My setup</h1>
  <ul>
  <li>Laravel PHP info app with phpinfo view, no extras</li>
  <li>Bitbucket Cloud with Heroku pipeline</li>
  <li>Heroku app accordingly configured</li>
  </ul>
  <p><strong>The problem is</strong>, when I push changes to Bitbucket and these are <strong>then pushed to Heroku</strong>, the <strong>git command is not found</strong>.</p>
  <p>Please see my <code>bitbucket-pipelines.yml</code> in link to <a href="https://pastebin.com/DBGBHavE" rel="nofollow noreferrer">pastebin</a>.</p>
  <p>When the pipeline step &quot;Deploy to Heroku&quot; runs, it aborts saying</p>
  <pre><code>+ git push 
  https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD
  
  bash: git: command not found
  </code></pre>
  <p>In the build setup, the installation of git successfully finishes. See <a href="https://i.imgur.com/lQObf8b.png" rel="nofollow noreferrer">screenshot</a>.</p>
  <p>Why does the git command afterwards fail?</p>
  <p>Thanks in advance!</p>