Back to front pageView on Hacker News (opens in a new tab)Show HN: I made a tool that made me faster at Git (opens in a new tab)github.com551 pointsby jesseduffield (on Hacker News)8 years agogithub.com (opens in a new tab)GitHub - jesseduffield/lazygit: simple terminal UI for git commandssimple terminal UI for git commands. Contribute to jesseduffield/lazygit development by creating an account on GitHub.Comments (229) 38 threadsShow all commentsShowing thread 5 of 38[-]pjc508 years ago6 replies#You know what would make me faster at git?"git undo" : undo the last git command line, whatever it did. Especially if you don't understand what it did or it overwrote local files.iwwr8 years ago#You could store your git refs in another git repo and take a snapshot of those after each command that changes things.[-]lgas8 years ago2 replies#https://github.com/tj/git-extras provides "git undo" (among others).jwilk8 years ago#It's a pretty useless wrapper over "git reset":https://github.com/tj/git-extras/blob/master/bin/git-undoIt won't help you if you don't understand what the last command did or when it overwrote local files; it'll just make everything worse.sverhagen8 years ago#Nice, but the README suggests it only does commits. I already have a simple alias for that. The parent comment wanted to undo anything.cormacrelf8 years ago#Gitup has this for many operations. http://gitup.co/karmakaze8 years ago#Many operations have an --abort option during the process. In other cases, there's `git reflog`.floo8 years ago#Not a CLI, but GitKraken does that for most commands.rplnt8 years ago#Some operations can't be undone. So you would need to wrap them in commands that would make undone possible. That would be interesting...
Show HN: I made a tool that made me faster at Git (opens in a new tab)github.com551 pointsby jesseduffield (on Hacker News)8 years ago
pjc508 years ago6 replies#You know what would make me faster at git?"git undo" : undo the last git command line, whatever it did. Especially if you don't understand what it did or it overwrote local files.
iwwr8 years ago#You could store your git refs in another git repo and take a snapshot of those after each command that changes things.
jwilk8 years ago#It's a pretty useless wrapper over "git reset":https://github.com/tj/git-extras/blob/master/bin/git-undoIt won't help you if you don't understand what the last command did or when it overwrote local files; it'll just make everything worse.
sverhagen8 years ago#Nice, but the README suggests it only does commits. I already have a simple alias for that. The parent comment wanted to undo anything.
karmakaze8 years ago#Many operations have an --abort option during the process. In other cases, there's `git reflog`.
rplnt8 years ago#Some operations can't be undone. So you would need to wrap them in commands that would make undone possible. That would be interesting...
Comments (229) 38 threads
Show all comments
Showing thread 5 of 38
"git undo" : undo the last git command line, whatever it did. Especially if you don't understand what it did or it overwrote local files.
https://github.com/tj/git-extras/blob/master/bin/git-undo
It won't help you if you don't understand what the last command did or when it overwrote local files; it'll just make everything worse.