Today I Learned you can discard changes in all files in a Git repo with this command:
git restore .
BashI use this a lot when testing different PRs and need to discard file changes after running the build command for each one.
๐ค Clarification on the use of Artificial Intelligence in this content
- ๐ AI used for: text correction;
- ๐ง Model: ChatGPT 4.1;
- ๐ง Human Reviewed: Yes.
Leave a Reply