Unleashing magic
dribbble.comdribbble.com
Gradient background

Exercises

Page 11 out of 12
Clarice Bouwer

Software Engineering Team Lead and Director of Cloudsure

Saturday, 15 October 2022 · Estimated 1 minute read
Modified on Monday, 17 October 2022

These exercises are intended for people who are new to software development. I have specifically stayed away from writing code so that fewer concepts have to be covered. The official repository is available on GitHub for you to follow along with.

These exercises are meant to be followed in chronological order.

1. Install Git

You will need to get started by installing Git on your machine. Once it is installed, you will have access to the git application through the git command in your terminal. Make sure you do the following:

  1. If you are using Windows, make sure you have WSL installed.
  2. Have a basic understanding of the terminal and how to use it.
  3. Download and install Git.
  4. Check what version of Git is running in your terminal.
  5. Install a GUI that you find interesting, open it and play around with it.

2. SSH

  1. Generate your SSH key.
  2. Setup your SSH key in GitHub.

3. Clone a repository

We are going to collaborate on a few simple text files as a team. Before we get started, go to (or create) a directory that will contain all your projects that you will be working on. I often create a Workspace or Projects directory in my user directory.

  1. Clone the repository found at GitHub.
  2. Create and switch to a new branch with your name. Example clarice.
  3. Create a new file git help git-stash >> git-stash.txt.
    If git-stash.txt already exists as a file, choose another git command. See git help for options.
  4. Create another text file called secrets.txt and type shhhhhhhh or some top secret mambo jumbo in it. This is a secret file so you need to ignore it from Git.
  5. Commit your changes and push them.
  6. Create a Pull Request on GitHub.

4. Pull from remote

  1. Check the status of the remote repository.
  2. Pull changes that you don't have.

What's next?

Git has the power to make you a better software developer. But you'll have to go beyond the basic "commit, push, pull" to use it effectively! In this course, we'll look at some of the more advanced concepts and tools to make you more productive and confident with Git.