failed to push some refs to git@heroku.com

后端 未结 27 2312
野性不改
野性不改 2020-12-02 10:10

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

27条回答
  •  爱一瞬间的悲伤
    2020-12-02 10:39

    For me it started working after setting global username/email.

    To set your global username/email configuration:
    1. Open the command line.
    2. Set your username:

    git config --global user.name "FIRST_NAME LAST_NAME"
    1. Set your email address:
    git config --global user.email "MY_NAME@example.com"
    1. Commit
    git commit -m "comment"
    1. Push to heroku
    git push heroku master

    BOOM! It worked (atleast for me)

提交回复
热议问题