Skip to content

Installing GitHub Desktop & Git

Calum Childs edited this page Oct 4, 2023 · 4 revisions

Welcome to the wiki for this repository! This page will show you how to install Git and GitHub Desktop.

For beginners, we recommend GitHub Desktop. For those who feel more confident, use Git. (Even if you use GitHub Desktop, I recommend you have a look at the Git commands and how they work.)

GitHub Desktop

  1. Download and install GitHub Desktop.
  2. Sign in with your GitHub.com account.
  3. Keep the default settings and click the blue "Finish" button.
  4. Select a repository that you want to "Clone" (copy) onto your computer then press the blue "Clone" button.
  5. Choose where you want to store your repository. Make sure you remember where you stored it. (Quick tip: It's best to avoid storing your local repository inside any OneDrive/Google Drive/etc. folders, as this can cause problems when you are trying to push your updated code to GitHub.)
  6. Click the blue "Clone" button.
  7. That's it! Now you can edit code and push it to your GitHub repository. Then you can make a pull request to the original repository with your updated code.

Git

  1. Download and install Git for your operating system.
  2. Once Git has been installed, open the application called Git Bash. Search for it if you need to.
  3. Then navigate to the area where you want on your computer in Git Bash using the cd command. (So if you want to store your repository inside a folder called Future that's inside your Documents folder, enter the command cd Documents/Future and press Enter.)
  4. Now get your repository from GitHub using the git clone (repository URL) command. To get your repository URL, navigate to your repository, click the green Code button and copy the URL beginning with https://github.com (as shown below.)
  5. Now you should have a copy of the repository located locally on your computer.

When you need to commit something to your repository, enter these two commands in order. Make sure your command line's directory is the same as the code that you want to commit.

  1. git add ., which will add all the files in this directory. (If you haven't added any files since the last time you committed, you can skip this step.)
  2. git commit -a "Update" will commit any changes you made to the local repository with the change note "Update".
  3. git push will push the code to your GitHub repository.
Clone this wiki locally