I rewrote the tree to my git repository to fix errors in the author name and email address. Bây giờ tôi đang cố gắng đẩy cây cố định vào repo của tôi trên Source Forge. CharlesB told me how to update the config file on the Source Forge servers. tập tin cấu hình của tôi trông như thế này:Nguồn Forge repo cung cấp cho "từ chối không nhanh về phía trước refs/heads/master" lỗi
[[email protected] bbct]$ cat config
[core]
repositoryformatversion = 0
filemode = true
bare = true
sharedrepository = 2
[receive]
denyNonFastforwards = false
Bây giờ khi tôi cố gắng ép buộc một sự thúc đẩy, tôi nhận được lỗi sau:
$ git push -f
Password:
Counting objects: 464, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (148/148), done.
Writing objects: 100% (452/452), 470.65 KiB, done.
Total 452 (delta 268), reused 417 (delta 247)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://[email protected]/p/bbct/code
! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://[email protected]/p/bbct/code'
gì đang xảy ra ở đây? Quan trọng hơn, làm thế nào để sửa nó?
Cập nhật:
Chạy git push -f
trên một máy tính khuôn viên công cộng cung cấp cho các thông báo lỗi tương tự như trên.
Một Cập nhật:
tôi nhân bản repo SF vào một thư mục tạm thời, thiết lập lại chi nhánh tổng thể repo tạm thời của này để cam kết ngay trước khi cam kết đầu tiên với tác giả sai và thư điện tử, sau đó chạy git push -f
. Tôi nhận được thông báo lỗi tương tự chính xác như với repo ban đầu của tôi:
$ git push -f
Password:
Total 0 (delta 0), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://[email protected]/p/bbct/code
! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://[email protected]/p/bbct/code'
Tôi đoán SF thực sự không muốn tôi làm một tổ chức phi nhanh về phía trước cam kết đây :-(
vì vậy lỗi này giống với câu hỏi trước của bạn? – CharlesB
Có, nó xuất hiện như vậy. Khác với ngay bây giờ tôi không nhận được lỗi "cho phép bị từ chối". Tôi cũng đang ở trên một cỗ máy khác. –
như vậy trên máy ban đầu 'push-f' hoạt động, và không phải trên này? – CharlesB