jesseduffield / jesseduffield/lazygit
Does deleting the newest commit in lazygit is the same as git reset --hard HEAD~1?
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
**Topic**
the version is 0.37
i have a git repo commit log like this, it's a tig show in nigthtly branch. I use tig snapshot because its log graph is clear.

there is a master branch , i checkout nightly and feature1 branch from it. Then make a commit on nightly, make two commits on feature1, at last merge feature1 to nightly, no conflicts.
All the operations below is happened in nightly branch.
Then i just need to delete the top merge commit. so I delete it in lazygit by press `d` in commits pane. but the result is so confused.

It deletes the merge commit and also the commit I did in nightly branch and cherry-pick 2 commits of feature1 to nightly. But I think it should only delete the merge commit as `git reset --hard HEAD~1` does.
**Your thoughts**
If it's not a bug , what the exactly delete commit means in lazygit?
Contributor guide
Assessment
This issue has not been assessed yet.