D
D
d-virt2017-01-23 22:56:06
git
d-virt, 2017-01-23 22:56:06

How to restore a branch on the server?

Hello!
Accidentally deleted a branch on the server at the same time, I never had it locally.
Can you please clarify how the branch can be restored on the server?
PS git reflog on the server does not display, because. the repository was created by git init --bare

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2017-01-23
@d-virt

git fsck --full --no-reflogs | grep commit
but you just need to move faster, since periodic garbage collection can be configured on the server and all hang-ups will simply be deleted.
original answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question