News for hackers. Stuff that matters.
Re:Helping a Million Developers Exit Vim by logicallee on Tuesday May 23, 2017 @02:23PM (#14403771)
I'm requesting the exact syntax I just wrote.

EDIT: the replies to this don't get how feature requests work. yes, I could write this basic feature myself. thanks.

Re:Helping a Million Developers Exit Vim by gknoy on Tuesday May 23, 2017 @02:55PM (#14404092)
You can make a bash script named `git-undo` , put it in your path (I use ~/bin):

    #! /bin/bash
    git reset HEAD~1 && git checkout .
Re:Helping a Million Developers Exit Vim by emodendroket on Tuesday May 23, 2017 @03:01PM (#14404158)
You can assign git aliases that execute shell commands by prefixing with an exclamation mark.
Re:Helping a Million Developers Exit Vim by emodendroket on Tuesday May 23, 2017 @02:35PM (#14403902)
So write a script and assign an alias.
Re:Helping a Million Developers Exit Vim by oblio on Tuesday May 23, 2017 @06:17PM (#14405873)
You're missing his point. Defaults matter. A huge majority of users (80%?) never change the defaults, often for good reasons.

A minor usability investment on the part of 1-2 git developers would prevent thousands of hours wasted by newbies and perpetual intermediates (https://blog.codinghorror.com/defending-perpetual-intermedia...).

Re:Helping a Million Developers Exit Vim by emodendroket on Tuesday May 23, 2017 @07:52PM (#14406493)
A feature like undo is never going to be implemented as a core thing because there are too many instances where it's not clear what it should do.