如果出现这种错误:
$ git push MYorigin master
To gitee.com:luyuefeng/lr-manager.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@gitee.com:luyuefeng/lr-manager.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
可以试试下面的解决方法:
(1)先执行git pull --rebase origin master 将README文件pull到本地,然后执行push;
(2)要么就是新建github仓库的时候不要选择使用README来初始化;