It was a dark and stormy night. All the seniors are graduated, and all the juniors who know how to do this have mysteriously caught a plague. It is up to you, young student, to create the robot repository. It is a daunting task, but the fate of the robot is in your hands.
For this, you need to download the VS Code from WPILib Tools. You can’t use the normal VS Code for this. From there, you can follow this guide created by WPI themselves.
Importing Last Year’s Robot Code
Example input into the WPI prompts:

Once you click “Import Project”, you’re almost there! Now just add the proper dependencies into the vendordeps/ folder. Most of the time, you can just copy/paste the current vendordeps/ folder.
That’s all! It’s a very simple process if you know what you’re doing. Once you’re done, just copy the code over (including the build.gradle) and upload it into Git/GitHub. Let’s get Kraken! 😹
Okay, I lied. If you’re updating from one year to another, you’re likely going to have many, many issues. First is the lack of dependency support for the year, as many dependencies only come out in the first following days after kickoff, with some lagging behind (notably PhotonVision and MapleSim).
You also have to update all references to removed methods, and preferably update all references to methods deprecated and marked for removal (although that can be delayed to later in the season).