- Problem
When using git to compare a large file (dozens of trillion orders of magnitude) to a different version, it waits for the load and the memory consumption is high, which makes it difficult for other processes to execute. In Task Manager, you can see that tortoisegitmerge eats about 3G of memory at this time.
?
- Reason
The file is too large to load very slowly.
?
- Workaround
In fact, when we use the "Compare with base" feature, we want to compare the differences between versions of files, so there is no need to load the entire file content, just show the different contents of the file. Settings are as follows:
- Use "Compare with base" first to compare a small file, otherwise, Ken can wait a long time to load a large file;
- Click Collapse in the View property page, and then, when you use Tortoisegitmerge to compare files again, the default is to open collapse
Git Compare with base, when comparing large files, long waits, unable to load