1. To prevent sourcetree from showing the file diffs for known useless files that will cause it to hang (like package-lock.json): Go to Preferences > Diff > Ignore File Patterns and add the filename to the comma separated list.

References

Written with StackEdit.