首页 > 解决方案 > Git Bash 终端中的“更新被拒绝”是什么意思?

问题描述

git bash 终端出现问题。我收到此错误:

 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/Eduk8ed/AdBarge.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.

标签: gitgithubgit-bash

解决方案


执行git pull --rebase origin master然后尝试推动。


推荐阅读