When creating a GIT repository for Unity the first thing I do is to immediately a .gitignore file. This allows versioning only what's really relevant. Especially exclude storage hungry directories like "Build" or "Library" and avoid creating conflicts and noise when deploying or migrating to a new laptop or platform.
This also means that whenever a change is pulled from the repository, Unity will rebuild the machine-specific directories and files for that machine. Hence the settings of Unity UI will remain specific for each configuration. See an example below
# Visual Studio cache directory.vs/
# Autogenerated VS/MD/Consulo solution and project filesExportedObj/
# Unity3D generated meta files*.pidb.meta*.pdb.meta
# Unity3D Generated File On Crash Reportssysinfo.txt