git status
命令显示未提交的提交(如下所述),而我已经在远程分支上推送了这些更改,并且所有更改都存在于远程分支中。
On branch Projects / ABC
您的分支机构领先于原产地/项目/ ABC'由3个提交。
答案 0 :(得分:0)
Git告诉你,你没有推动你的改变。
如果您尝试推送但是您的分支机构未与遥控器保持同步,则推送将失败。
执行此操作以验证您是否已推送代码:
# Update the local repo with the remote code
# If there will be line with the branch name it means that your local repo
# was not up to date with the remote repo.
git fetch --all --prune
# update your local branch with the latest code
git pull origin Projects/ABC
# now you are fully up to date and you can push it
git push origin Projects/ABC