错误显示
D:\devworkspace\ecpphoton\jcodef>git push
To https://github.com/osxm/jcodef.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/osxm/jcodef.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.
错误产生过程
笔者在github上创建一个repository, 之后和本地的路径关联后提交代码出现以上错误。具体过程如下:
- 在 Github的页