为什么遥控器拒绝强制推送?

时间:2019-07-12 02:55:03

标签: git

我已经在Linux机器上建立了一个裸露的Git存储库,我可以在该机器上通过私钥进行ssh访问。

$ git push deploy master --force               
Counting objects: 32, done.                                                             
Delta compression using up to 4 threads.                                             
Compressing objects: 100% (28/28), done.                                        
Writing objects: 100% (32/32), 2.97 KiB | 160.00 KiB/s, done.                     
Total 32 (delta 16), reused 3 (delta 0)                     
remote: error: denying non-fast-forward refs/heads/master (you should pull first) 
To xx.xx.xxx.xxx:/home/xxxx/xxxx/source/xxxx.git              
 ! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'xxxx@xx.xx.xxx.xxx:/home/xxxx/xxxx/source/xxxx.git'

遥控器拒绝强制推送。如何使遥控器接受远程推送?

远程名称为deploy。远程上的分支名称为master

0 个答案:

没有答案