I've been running into some issues trying to make an initial commit to a local repository. All the files I'm trying to push were generated by a script used to break down Roblox place files (.rbxlx) into multiple .lua files used by the Rojo development tool for version control & more. If it's helpful, it can be found here: https://github.com/rojo-rbx/rbxlx-to-rojo
I suspect that the issue may be related to the conversion, but the script did not generate any errors and all of the resulting files look exactly as they should and exactly as they did before being processed.
I've tried:
- Updating Git (this made the error message more specific)
- Ensuring all of my files were UTF-8 (they are)
- Adding .DS_Store to .gitignore (there are some invalid characters here, but they're not being staged.)
- Resetting/reinitializing the repository
- Making the commit via VSCode as I usually do
- Simply initializing & making the commit via Terminal on macOS
Command & output in Terminal:
git commit --message "Initial commit"
error: stream did not contain valid UTF-8
fatal: failed to write commit object
Command & output via VSCode (Commit & Push option)
2023-07-01 14:27:43.239 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [32ms]
2023-07-01 14:27:43.240 [info] error: stream did not contain valid UTF-8
fatal: failed to write commit object
2023-07-01 14:27:43.250 [info] > git config --get-all user.name [8ms]
2023-07-01 14:27:43.259 [info] > git config --get-all user.email [7ms]
2023-07-01 14:27:43.269 [info] > git config --get commit.template [7ms]
2023-07-01 14:27:43.271 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [7ms]
2023-07-01 14:27:43.282 [info] > git status -z -uall [9ms]
2023-07-01 14:27:44.416 [info] > git config --get commit.template [8ms]
2023-07-01 14:27:44.421 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [12ms]
2023-07-01 14:27:44.434 [info] > git status -z -uall [10ms]