Github - tstorrnetnz/teaching2025 GitHub Wiki

Learning Aim: Set up Github ready for your project

There are a few things that need doing before you can even begin to think of starting a project. The most important is linking your repl account to your Github account.

Why do we need to do this?

Github is used for saving different versions of your code. This means that if you 'break' your code you can easily go back or restore it. It is also easy to share your code with others - e.g. your teacher! Github is independent from repl, so it is 'backed up' in a different place.

VSC has a useful guide to linking with Github.

  1. The first step is to Install the VS Code Github Pull Requests and Issues Extension.
  2. Next, Sign in to Github (in the terminal use global user.name "yourusername" AND THEN git config --global user.email "[email protected]" ) 1.Clone your repository that I made for you on Github by running the Git: Clone command in the Command Palette (Ctrl+Shift+P). Choose your Github repository after selecting clone from Github.
  3. Choose a folder to clone it to and then select add to workspace.
  4. Then write just one line of comment in the README.md file (so that we have something to save - also called commit or push to Github)
  5. Finally use ctrl-shift-G to get to the source control pane,enter a commit message and select the tick to commit to your local machine (save all and commit.)
  6. Last bit - to send your changes to Github, use the synchronise button. Always check your commits have been pushed to your repository.