Posts

Showing posts with the label gerrit

Getting “error: no such commit” when trying to restore a deleted branch?

Getting “error: no such commit” when trying to restore a deleted branch? I have already committed a file in Gerrit(pushed it), but I think, I, unfortunately, deleted that branch locally from which I committed. How to fix that? Please help. I tried git branch --contains 31436fd7200566967f85bfb1ee5425f9b599b908 but it shows error: no such commit 31436fd7200566967f85bfb1ee5425f9b599b908 Edit: Yes I've git installed locally and I worked on the branch locally. I got commit id from the Gerrit site, I've committed. Okay, two days ago first there was a problem when I tried to commit the change, say A. I tried to submit it using "./logerrit submit master" but all I got was: Counting objects: 32, done. Delta compression using up to 4 threads. Compressing objects: 100% (32/32), done. Writing objects: 100% (32/32), 100.46 KiB | 0 bytes/s, done. Total 32 (delta 22), reused 0 (delta 0) remote: Resolving deltas: 100% (22/22) remote: Counting objec...