Git学习过程中出现的问题
Git将本地仓库推送到远程仓库出现
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ‘git@github.com:keepitup123/Beacon2.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.
解决方法
先将远程仓库拉取下来,再次pull---->add—>commit---->push