As a response on @Dorrin's comment above: Another reason for a grayed out "Commit" button is that you haven't added a commit message. This can be typed into the small sub-window just below the Commit button, but it is not easy to see (especially in Dark Mode).