For example, performing a "Reformat Code" operation in an IDE such as IntelliJ may produce a lot of formatting changes to code. Subsequently when files are committed and diffs are viewed in Git and Stash the formatting changes in the diffs make the changes difficult to read.
Is there a way to tell Git or Stash to ignore formatting changes?