refactored the searching
gitIgnore