3 ms·
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 .
by gknoy 9y ago
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 .
- emodendroket 9y agoYou can assign git aliases that execute shell commands by prefixing with an exclamation mark.