- Install the Heroku CLI
- Login to Heroku
heroku login
- Create a local git repository with the same name as your heroku app
cd myproject/
git init
- Add Heroku and Github repository as remote / origin
heroku git:remote -a myproject
git remote add origin https://github.com/IceTimux/pastebin
- Pull, commit and push to Heroku
git pull origin master
git add .
git commit -am "updating..."
git push heroku master