You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature or problem you’d like to solve
Sometimes a bad change in local repo might be mistakenely committed.
To avoid them being pushed, currently, it seems that only option is to delete the repository. Which feels like a nuclear option imo.
Proposed solution
Ability to delete/remove local non-pushed commits
How will it benefit Desktop and its users?
In the above problem, this will be a life savour if there is big sized project.
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.
it slips from the view. as it seems to be sticking in the ui boundaries. the padding from bottom can be improved to make it more vertically center aligned.
Activity
goyalyashpal commentedon May 25, 2021
sort of tangentially related: #7903
duplicate issues searched by: delete commits
tidy-dev commentedon May 25, 2021
HI @yashpalgoyal1304. We actually do have feature that I believe will help.
If your commits are local non-pushed commits, they will have this up arrow indicator on them.

Any commit with that arrow can be undone via the undo button on the changes tab (which is only present when there are unpushed commits)

This will do a
git reset --softon the last local commit keeping those changes locally so you can modify them or recommit them.Hope that helps. :)
goyalyashpal commentedon May 25, 2021
yeah, it worked. niiice. Thanks a lot. 👍
goyalyashpal commentedon May 25, 2021
For ux suggestion:
it slips from the view. as it seems to be sticking in the ui boundaries. the padding from bottom can be improved to make it more vertically center aligned.

views on giving the undo button there??

tidy-dev commentedon May 25, 2021
Thank you for your suggestions. We are currently in discussion for something like you are suggesting in bullet 2. 🙂
goyalyashpal commentedon May 26, 2021
also, the undo-ing doesnt work well in case there are commits after the wrong commit.
w5NTPQLMkg.mp4
tidy-dev commentedon May 26, 2021
Here is the issue we are tracking Amend/Undo feedback under if you want to add anything there. 🙂