无法在 git 上推送代码


error: failed to push some refs to 'git@173.255.206.222:apal.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 --rebase将更改重新定位在远程更改之上。然后你可以推动。

最新更新