Sau lần hợp nhất cuối cùng vào nhánh chính của kho lưu trữ Git của tôi, tôi đã mất khả năng sao chép kho lưu trữ.Git refs/remotes/origin/master không trỏ đến một đối tượng hợp lệ
Cloning into test-repository... remote: Counting objects: 126084, done. remote: Compressing objects: 100% (28327/28327), done. Receiving objects: 100% (126084/126084), 132.63 MiB | 29.30 MiB/s, done. remote: Total 126084 (delta 96101), reused 126078 (delta 96095) Resolving deltas: 100% (96101/96101), done. error: refs/remotes/origin/master does not point to a valid object! error: Trying to write ref refs/heads/master with nonexistant object 951aca8051823b2f202d30c9cb05401ef17618c6
Fisheye, một công cụ kho lưu trữ, được báo cáo:
Unable to fetch from remote repository: /var/atlassian/application-data/fisheye/managed-repos/MYREPONAME.git error: unable to find 0d998c99b6d01e8aabca72b1934802acf90b8fc9, fatal: object 0d998c99b6d01e8aabca72b1934802acf90b8fc9 not found
cam kết cuối cùng trong kho trên chi nhánh tổng thể là:
commit 0d998c99b6d01e8aabca72b1934802acf90b8fc9 Merge: a6ea4b3 1f373a9 Date: Fri Dec 14 13:57:24 2012 +0200 Merge branch 'new_error_code'
Tôi đã thử:
cd /var/atlassian/application-data/fisheye/managed-repos/MYREPONAME.git
git gc
git fsck --full
git reflog expire --expire=0 --all
git update-ref
git gc --aggressive
Các câu hỏi sau đã làm không giúp trường hợp của tôi:
- How to recover Git objects damaged by hard disk failure?
- Fatal error after GitHub automatic merge
- Listing and deleting Git commits that are under no branch (dangling?)
nó quá chậm và tốn nhiều tiền. – suiwenfeng
@Matt bạn có thể xây dựng thêm những gì xảy ra ở đây không? – andi
Không có lời giải thích nào cả. Bạn nên nghĩ rằng nhiều người hơn có thể cần điều này trong tương lai = \ – PlayHardGoPro