News for hackers. Stuff that matters.

alxndrr

Re:Git undo: We can do better on Tuesday June 22, 2021 @04:41AM (#27589367)
Tower for Mac supports undoing (and redoing) all working tree actions like staging/unstaging/discarding individual chunks or complete files, undoing applying a stash, everything. Just hit CMD-Z. The feature is coming to Windows soon as well!

I am the CTO of Tower, a Git client for Mac and Windows.

Re:Git undo: We can do better on Tuesday June 22, 2021 @02:30AM (#27588633)
I am the CTO of Tower, a Git client for Mac and Windows.

Tower for Mac supports Undo (and also Redo) for very much all Git operations starting with version 3 two years ago. This includes undoing all working tree actions like staging/unstaging/discarding individual chunks or complete files. Just hit CMD-Z.

This feature is coming to our Windows version soon as well.

If you're interested in technical details, you can read it here: https://www.git-tower.com/blog/how-we-built-undo/

Re:A Simple Tweak for Making 'git rebase' Safe on OS X on Tuesday November 26, 2013 @11:16AM (#6802182)
I consider disabling the revisiond process a “hack“ and not really an option, as users may rely on this OS X feature. The daemon might also get re-enabled by an OS X update anytime.

This leaves you with the option to disable the core.trustctime setting, which I believe has no noticeable performance drawback for most or maybe all Git users.

If you are sensitive about the performance, perhaps a third option would be to make an alias for affected commands, especially for rebase:

_rebase = "-c core.trustctime=false rebase"