Add .idea/ to .gitignore Rider generates project-specific configuration in .idea/ which is machine-specific and not required for Unity builds.