Below is the entry I added in .gitignore to exclude Load.php file so that any change to this file is tracked. I don't seem to find the mistake in my rules. Please help me figure it out.
Path to the file: public_html/vendor/magento/zendframework1/library/Zend
/public_html/vendor
!/public_html/vendor/magento
/public_html/vendor/magento/*
!/public_html/vendor/magento/zendframework1
/public_html/vendor/magento/zendframework1/*
!/public_html/vendor/magento/zendframework1/library
/public_html/vendor/magento/zendframework1/library/*
!/public_html/vendor/magento/zendframework1/library/Zend
/public_html/vendor/magento/zendframework1/library/Zend/*
!public_html/vendor/magento/zendframework1/library/Zend/Loader.php