File permissions in git

When I changed file permission to 666 and done git commit it’s shows create mode of file permission as 644 after git push in gitlab it shows commit as 644 but whenever I tried to print the file permission in gitlab through ci/cd pipeline it shows 666 can any one help me understand like what’s internally happening

In your Git config, do you have filemode = true set?

Yeah it is set to true