M
M
Marat Ivanov2020-12-16 10:31:46
git
Marat Ivanov, 2020-12-16 10:31:46

How to restore a branch with commits through the Bitbucket interface?

Tell me how to restore the branch, preferably through the bitbucket interface, it was deleted without a merge. Thanks!!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy Vorobyov, 2020-12-16
@YuriyVorobyov1333

Through the interface like in any way.
Use git reflog, there will be a list of commits, find the HEAD of your remote branch and use git checkout -b <branch> <sha>, where branch is the branch name and sha is the commit hash. More info here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question