I've been using VSCode to create/update GitHub repros for a long time, but today I have a new problem. I can't create/upload a new Rust project, but I can create/upload a non-Rust project. I need to ask if there's anything different with a Rust project to any other type.
However, I did rename the project before trying to commit. I renamed the main folder from XXX to XXX-YYY-ZZ, and also the name in Cargo.toml and Cargo.lock. Is this the problem, or is there something wrong with the name?
The program is Visual Studio Code (VSCODE), and the command is executed by the button labeled Publish Branch, which exec git push -u origin main. Of course, the project had previously been committed to the local repro.
git push -u origin main
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
The requested URL returned error: 400 suggests that the remote repository you are trying to push to does not exist. This indicates your local repository’s remote configuration is incorrect. Perhaps you set it up before you decided to rename your project?
Run git remote -v to see what the current configuration for the remote origin is.
To fix the problem (if this is the problem), run git remote set-url origin <URL goes here> with the proper repository URL provided by GitHub.
After a lot of experiment, creating, deleting GitHub repros and using new local repros, I think I've identified the problem...
If any file has extended attributes, the repro becomes useless after attempting to commit to GitHub.. IE if a file permissions ends with an "at" character.
This seems ridiculous, but if this is the case perhaps Microsoft is to blame.
As far as I remember, this is the first time I've used git on macOS. I normally develop on which ever linux m/c I'm deploying on - but using VSCode Remote SSH from the Mac to edit and compile. It makes life easy for me.
My latest investigation discovered: I can commit using the Microsoft GitHub Desktop App, but not with their Visual Studio. Both are the latest versions downloaded today. This is on a Mac, so I shouldn't be surprised.