amended git function to match exact commands and not wildcarded anymore