所以我在一个名为“test_branch”的分支上。
我这样做了git add .
,git commit
而且一切正常。
但是当我这样做时git push
,它给了我错误:
! [rejected] acceptance -> acceptance (non-fast-forward)
error: failed to push some refs to 'git@github.com:company/sample.git'
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.
执行git pull
向我显示所有内容都是最新的,然后进行推送,给我与上述相同的错误。
有人可以帮我吗?
谢谢。