55` git-undo ` tracks every mutating Git command you run and can roll it back with a single ` git undo ` 🚀
66No reflog spelunking, no cherry‑picks—just instant reversal. ⚡
77
8- ---
9-
108## Table of Contents
1191 . [ Introduction] ( #introduction )
12102 . [ Features] ( #features )
@@ -59,8 +57,6 @@ cd git-undo
5957The installer drops [ ` scripts/git-undo-hook.zsh ` ] ( scripts/git-undo-hook.zsh ) into ` ~/.config/git-undo/ `
6058and appends a ` source ` line to your ` .zshrc ` , so every successful Git command is logged automatically.
6159
62- ---
63-
6460## Quick Start
6561``` bash
6662git commit -m " oops" # commit, then regret it
@@ -72,8 +68,6 @@ Need the commit back?
7268git undo undo # redo last undo (like Ctrl+Shift+Z)
7369```
7470
75- ---
76-
7771## Usage
7872| Command | Effect |
7973| ----------------------| ---------------------------------------------------|
@@ -83,7 +77,6 @@ git undo undo # redo last undo (like Ctrl+Shift+Z)
8377| ` git undo --dry-run ` | Print what * would* be executed, do nothing |
8478| ` git undo --log ` | Dump your logged command history |
8579
86- ---
8780
8881## Supported Git Commands
8982* ` commit `
@@ -94,8 +87,6 @@ git undo undo # redo last undo (like Ctrl+Shift+Z)
9487* ` checkout -b `
9588* More on the way—PRs welcome!
9689
97- ---
98-
9990## Examples
10091Undo a merge commit:
10192``` bash
@@ -109,8 +100,6 @@ git add file1.go file2.go
109100git undo # unstages file1.go file2.go
110101```
111102
112- ---
113-
114103## Development & Testing
115104``` bash
116105make tidy # fmt, vet, mod tidy
@@ -119,14 +108,10 @@ make lint # golangci‑lint
119108make build # compile to ./build/git-undo
120109make install # installs Go binary and adds zsh hook
121110```
122- ---
123-
124111## Contributing & Feedback
125112Spotted a bug or missing undo case?
126113Opening an issue or PR makes the tool better for everyone.
127114If ` git-undo ` saved your bacon, please ** star the repo** and share suggestions!
128115
129- ---
130-
131116## License
132117[ MIT] ( LICENSE )
0 commit comments