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