Git pull 作品没有显示任何更新:
sh-3.2$ git pull
Already up-to-date.
当我执行 git push 时出现错误:
sh-3.2$ git push --tags
To user@example.com:some/git/repo
! [rejected] DEVEL_BLEEDINGEDGE -> DEVEL_BLEEDINGEDGE (non-fast-forward)
error: failed to push some refs to 'user@example.com:some/git/repo'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
变基给出相同的结果:
sh-3.2$ git pull --rebase
Current branch devel is up to date.
DEVEL_BLEEDINGEDGE 标签用于我的日常自动构建脚本,每次我需要使用这些脚本部署一些新内容时,我都会使用以下代码移动该标签:
git tag -f DEVEL_BLEEDINGEDGE
那么,为什么我不能推回我的标签呢?
对于我也不移动的其他标签,我时不时会收到此错误。