i created a node backend and a heroku server, using cmd, i logged into heroku using heroku cli, and created a heroku app and connected my mongodb uri to the server, after that i initialized a git repository using git init
, and then i did git add .
the git commit -m ""
then i pushed it to heroku using git push heroku master
and did heroku ps:scale web=1
and everything worked perfectly and i have been using my backend since. but today i tried to commit something new to heroku using git commit -m ""
and it gave me this error message
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'eme@PC.(none)')
i then tried to push and it gave me this error:
error: src refspec master does not match any
error: failed to push some refs to 'heroku'
i have tried the solutions of some stackoverflow post with no avail