QGIS project files (.qgs) are XML files. They tend to change a lot when saving them on different machines. And therefore are hard to track in versioning systems like GIT because the XML attributes are ordered differently every time.
Install this plugin and it will make sure that attributes are ordered alphabetically whenever you save a QGIS file.