Commiting changes into index file