When trying to commit some changes I made in my Ruby project and uploaded to Heroku, I had an error message.
Inside the project folder on the terminal I execute the commands:
$ git status
$ git add .
$ git commit -m 'msg'
$ git push heroku master
The following error was returned:
! [rejected] master - > master (fetch first) error: failed to push some refs to ' link ' tip: Updates were rejected because the remote contains work that you do tip: not have locally. This is usually caused by another repository pushing tip: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I tried to start a new repository to send again;
$ git init
$ git add .
$ git commit -m 'msg'
New error was reported:
In the master branch nothing to submit, empty work directory
How do I upload / update my project on heroku?
Thank you.