- Create a GitHub Account
- Download the following tools
- Open VS Code and log in to GitHub (click the bottom-left icon of a human)
With the CEMFI email address, you can get the student developer pack.
You might need to reboot your computer after the installation. DVC does not have a GUI application. Even if the installation succeeded, you won't see any icon in the menu.
I think most PCs have git by default. To make sure, run this in the command line
git --version
If you don't have it, downloading GitHub Desktop is one of the easiest ways to download git.
- Create a Remote Repository
- Clone it to your local machine (from VS Code)
- Prepare the folder in Google Drive (and copy the folder code)
- Setup the remote of DVC
dvc init
dvc remote add --default myremote gdrive://GDRIVE_FOLDER_CODE
git switch main
git pull origin main
dvc pull
- Checkout to dev branch
git checkout -b "dev"
- Write Codes
dvc add -R data
git add .
git commit -m "hogehoge"
- Push to dev branch in the remote repository
git push origin dev
- Open GitHub remote repository
- Create a Pull Request (dev -> main)
- Confirm merge and delete dev branch
git switch main
git pull origin main
git branch -d dev
dvc push