Hrm… can you really recover branches and tags once you delete them?
I was under the impression commits were retained but removing labels (tags, branches, remotes) was unrecoverable and immediate.
I was under the impression commits were retained but removing labels (tags, branches, remotes) was unrecoverable and immediate.
It's worth noting that, in principle, there are cases where the reflog will have never observed a branch move. The reflog we usually look at is that of HEAD; if HEAD did not have the branch checked out when it moved, then that information will be lost. (For example, if you run `git branch -f my-branch abc123`, the branch will be forcibly reassigned without having been checked out.) See https://github.com/arxanas/git-branchless/wiki/Architecture#... for more details.