Steps:
-
- Run an instance of VS code on UCloud
- Use limited compute for the first classes
- Mount your own (private!) folder to the instance in which you create the following files.
-
- Create a file called
setup_git.sh
containing the following code:
- Create a file called
# run using
# bash path_to_folder/setup_git.sh
git config --global user.email "yourmail@mail.com"
git config --global user.name "githubusername"
Make sure to fill in the correct username and email. This will set up GitHub, but you also need to:
-
- Create a file called
git_token.txt
which contain your personal access token.
- Create a file called
Save the files and you can now close the session. Next time you start a session you can mount your folder and run:
bash path_to_folder/setup_git.sh
to set up git. If you want to use the VS code GitHub integration you will still need to log in using the GitHub access token, which can simply be copied from the file git_token.txt
.
In the VS code documentation on UCloud there is a guide to setting up live share on UCloud.