3 ms·
> The dangerous commands are git-reset and git-checkout Don't forget about `git-restore` which replaces `git reset -- filename`
by raju 4y ago
> The dangerous commands are git-reset and git-checkout
Don't forget about `git-restore` which replaces `git reset -- filename`
- WorldMaker 4y agoIt's also designed to replace `git checkout branch -- filename` and related complicated `git checkout` uses. (It was added alongside `git switch` and between `git switch` and `git restore` you can entirely avoid `git checkout`.)