Comment for each file when commit is created

Hi is it possible to comment for each file at time of commit as mandatory ? (which is possible in gitlab after commit is pushed.)
also is it possible to restrict branch for particular user …

thanks in advance.