The shares of IT companies including Infosys, Wipro, Tata Consultancy Services (TCS) and others gained up to 4% on Friday, pushing the Nifty IT index more than 2% higher even as Sensex and Nifty traded with marginal gains.