Warning
This post was published 39 days ago. The information described in this article may have changed.
I recently created a workspace for my Question Bank Creator project following the pattern laid out in the Rust Book. I used cargo new
to create a new project directory and then copied my files over from the old, independent directory where the project has been residing up until now. That worked fine, and, as long as I'm working in the new project directory, I'm able to commit the project without any hiccups. I also used cargo new
to create a second folder where (eventually) another part of the project will reside. (Nothing there to commit since at this point it's still in the "Hello, World!" stage.)
I have a repository for Question Bank Creator, but it was made before I decided that I needed a workspace. Just yesterday, after cleaning up some annoying warnings, I committed the project and then tried to push it to Github, and that is where I got stuck. No surprise there, since the working directory is now a sub-directory in the workspace folder. So, here's my question: Working in a workspace, how do I commit and push my project to Github? I will eventually want to publish, so maybe I should include that in my question. How do I publish a project contained in a workspace?
2 posts - 2 participants
🏷️ rust_feed