git rejected push non-fast-forward

前端 未结 7 493
情书的邮戳
情书的邮戳 2020-12-08 17:03

I am quite new to git, and I had been working on a small side project for the last 2 months and had been pushing stuff onto bitbucket with no problems. A couple of days ago,

7条回答
  •  情歌与酒
    2020-12-08 17:20

    Try doing

    git pull origin master
    git add -A
    git commit -m "modified code"
    git push origin master
    

    Your local repository is likely out of sync with the remote repository.

提交回复
热议问题