Git error: ! [rejected] master -> master (non-fast-forward)
Git error: ! [rejected] master -> master (non-fast-forward)
我正在更新我的项目,当我试图将它上传到我的存储库时,出现以下错误:
已经
git pull --rebase origin master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://*******/production.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 status
给出:
rebase in progress; onto cda02b2 You are currently rebasing branch
'master' on 'cda02b2'. (all conflicts fixed: run "git rebase
--continue")
nothing to commit, working directory clean
您必须先从远程获取最新更改,然后才能推送您的更改。这就是你对 git pull --rebase
所做的,但它看起来没有用。
确认拉取成功了吗?
你们没有冲突吗?
先试试这个没有变基的拉动,看看它是否有效
git pull origin master
你可以用--rebase再次拉动
git pull --rebase origin master
然后推送
git push origin master
正如 git 在输出中告诉您的那样 It seems that there is already a rebase-apply directory, and I wonder if you are in the middle of another rebase. If that is the case, please try git rebase (--continue | --abort | --skip)
您正处于变基过程中。
您首先必须在
之前中止或继续此变基
git rebase --continue
或
git rebase --abort
然后用
再次拉动
git pull --rebase origin master
我觉得这个问题可能有两个重要的原因
一次获取回购
或 运行 Vs-code 中的一个或多个 进程 或源代码管理之类的工具
最好检查一下。
如果你看到
! [拒绝] master -> master (non-fast-forward)
最好抓取所有的 Repo :
at first
git fetch origin master
现在您可以看到:
分行主管 -> FETCH_HEAD
Next
git push -f origin master
我正在更新我的项目,当我试图将它上传到我的存储库时,出现以下错误:
已经
git pull --rebase origin master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://*******/production.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 status
给出:
rebase in progress; onto cda02b2 You are currently rebasing branch 'master' on 'cda02b2'. (all conflicts fixed: run "git rebase --continue")
nothing to commit, working directory clean
您必须先从远程获取最新更改,然后才能推送您的更改。这就是你对 git pull --rebase
所做的,但它看起来没有用。
确认拉取成功了吗?
你们没有冲突吗?
先试试这个没有变基的拉动,看看它是否有效
git pull origin master
你可以用--rebase再次拉动
git pull --rebase origin master
然后推送
git push origin master
正如 git 在输出中告诉您的那样 It seems that there is already a rebase-apply directory, and I wonder if you are in the middle of another rebase. If that is the case, please try git rebase (--continue | --abort | --skip)
您正处于变基过程中。
您首先必须在
git rebase --continue
或
git rebase --abort
然后用
再次拉动git pull --rebase origin master
我觉得这个问题可能有两个重要的原因 一次获取回购 或 运行 Vs-code 中的一个或多个 进程 或源代码管理之类的工具 最好检查一下。
如果你看到
! [拒绝] master -> master (non-fast-forward)
最好抓取所有的 Repo :
at first
git fetch origin master
现在您可以看到:
分行主管 -> FETCH_HEAD
Next
git push -f origin master