title: How to connect to the selected app with heroku CLI
body: <p>I'm attempting to deploy my Java web app on Heroku. When I was making a tutorial I've created an app using <em>heroku create</em> command, lets say it wasy "name-app1". Then I removed it after the tutorial and create the new one to deploy it let it be: "new_app". However, when I attempt to do anything like upload my code there was an error that previous app "name-app1" does not exist anymore. When I try to use for e.g. heroku logs there is following error:</p>
  
  <pre><code> »   Error: Missing required flag:
   »     -a, --app APP  app to run command against
   »   See more help with --help
  </code></pre>
  
  <p>I tired to point at my new app with following command:</p>
  
  <pre><code>git remote set-url heroku git@heroku.com:hidden-ridge-8790.git
  </code></pre>
  
  <p>I think I messed up something and don't know how to fix it.</p>