I just tried to clone a repository with spaces at the ends of some of the filenames. (example file: https://github.com/pietrop/slate-transcript-editor/blob/7a8c51680c4829b43146bb30b94d4aa8d6e67bef/docs/guides/dpe-transcript-format.md%20)
Unsuprisingly Git itself isn’t too happy about this and refuses to clone on my Windows machine. In order to fix the issue, I tried to make the edits through the GitHub interface itself before cloning. However, the filename box at the top here seems to automatically strip spaces from the filename:
Of course, the result of that is that you cannot make a commit to just remove the space character - since GitHub’s UI has already removed it and doesn’t think you’ve made any changes at all. In order to fix the issue, I first had to rename the file to something different, then back to the corrected name. Would be great if this UI issue could be fixed.