I am getting this error when I am trying push my files into heroku rep.
Ive set autocrlf = false already in gitconfig but this problem is still there. i have also tr
please check if you have 2 lock files if yes then leave the package-lock.json and delete the other one like yarn.lock
Then execute these commands.
Make sure you’re pushing the right branch. I wasn’t on master
and kept wondering why it was complaining :P
You should check something
I hope it will work with you
If your heroku project root is in a different directory than your git branch root, use this:
git subtree push --prefix path/to/root heroku master
For anyone arriving here from a Google search with the same error message. Also be aware that you can have a problem if you are using sqlite3
https://devcenter.heroku.com/articles/sqlite3
It would appear that you are not fully up-to-date. You would need to do a git pull and either "--rebase" or let it merge into your set.
After this, you should then be able to push, since it would be a 'fast-forward' change that wouldn't remove history.
Edit: example command list
git pull
git push