-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Niggle:
I just inadvertently deleted the wrong branch, but lazygit made it harder to find the hash to recover:
I expected / would hope for:
# from the CLI
git branch -D "feature/my-branch"
Deleted branch feature/my-branch (was 0ffd351).
# when I can see the hash, I can recover like:
git checkout -b "feature/my-branch" 0ffd351Lazygit omits the hash of the head of the deleted branch in the log:
Delete branch
git branch -d "feature/my-branch"
Solution I like
Include the hash in the log message:
Delete branch
Deleted branch feature/my-branch (was 0ffd351).
Alternatives considered
- don't use lazygit for branch deletion
- recover using other methods
Thanks for considering!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request