Ramin Honary on Nostr: #Magit is too easy to use sometimes: almost lost an important bug fix to a hard reset ...
#Magit is too easy to use sometimes: almost lost an important bug fix to a hard reset
I was trying to reset just one file, for that you press X f but I absentmindedly pushed X h instead which deleted all changes. Fortunately #Emacs saved me, I was able to remember all of the files I had changed, visit each of those buffers and press C-/ (undo) in each of them to recover my work. The correct copy of my files were on the Undo stack. I can see why some people love those backup files with the tilde characters at the end of the file name.
But then again, #Emacs , or rather #Magit was the problem to begin with. Is there any way to configure it to ask for confirmation before doing a hard reset?
Published at
2023-11-14 11:11:23Event JSON
{
"id": "3ee1aafc71e8027777a42cddbb1fe1f39725b15f7b31d135b0645a97693a24c7",
"pubkey": "4ae97b2084e2b2c3bc17385ca42179c75c9177c2fef6f0b99c65fa177ff4d1fa",
"created_at": 1699960283,
"kind": 1,
"tags": [
[
"t",
"magit"
],
[
"t",
"emacs"
],
[
"proxy",
"https://emacs.ch/users/ramin_hal9001/statuses/111408597124771480",
"activitypub"
]
],
"content": " #Magit is too easy to use sometimes: almost lost an important bug fix to a hard reset\nI was trying to reset just one file, for that you press X f but I absentmindedly pushed X h instead which deleted all changes. Fortunately #Emacs saved me, I was able to remember all of the files I had changed, visit each of those buffers and press C-/ (undo) in each of them to recover my work. The correct copy of my files were on the Undo stack. I can see why some people love those backup files with the tilde characters at the end of the file name.\nBut then again, #Emacs , or rather #Magit was the problem to begin with. Is there any way to configure it to ask for confirmation before doing a hard reset?",
"sig": "2a103d7fcb747edfcb9cbad86cbd2729bd51ce353df0be6ff5b09a74e388718b2f626d9082d52850ace6f4339ab8a853d0421b6769543c8ef7974172c8c228c8"
}