How to use git to revert changes to individual files or foldersvidual
This is something I need to do often and often forget how to do it. tl;dr: git checkout main <filename> Disclaimer: Like anything else this is nuanced and there are other ways to accomplish this as well as other arguments to revert to a point in time instead of just the tip of main. Revert a …