I want to deploy my project to Heroku without placing my project to github? is this possible because I have to perform these steps and getting error. Here are the step i have performed
- In my project i run this command
git init
- then i added some files
git add myProjectFiles
- I create a project on Heroku through
heroku create myprojectname
- Then i write this command to push my project on
git push heroku master
and i got this error:
error: src refspec master does not match any.
some refs to 'https:///git.heroku.com/tllwebsocekt.git'error: failed to push
Then i tried this
git push heroku
fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, usegit push --set-upstream heroku master
on this error i tried this
git push --set-upstream heroku master
but it also throw an error
error: src refspec master does not match any.
some refs to 'https:///git.heroku.com/tllwebsocekt.git'error: failed to push