Git

Git is used to work with the assignment project. The project is stored in a Git version control repository that you can clone and work with on your computer.

If you’re not familiar with Git and its commands and operations, don’t worry: the steps you need to take for the assignments will all be listed, so you can just follow along with the instructions.

If your editor/IDE has a built-in GUI for working with git, you can of course use that too. The same goes for any separate GUI application you normally use for Git, such as SourceTree, Git Tower or Gitkraken. The instructions will leverage shell commands, to remain agnostic of the specifics of certain tools.

MacOS

Go to your terminal application and perform the following command to check that git is installed.

git -v

The version of the git program should be returned as shown below. If it’s not, install Git first by going to the website and following the instructions there.

Example output of git -v
git version 2.41.0

Once you have git available as a command, change into a temporary directory somewhere in your terminal application and test whether you can clone a remote repository.

git clone https://github.com/curl/curl.git

This will create a folder named curl in your temporary directory and copy all of the contents of the online repository into it and set up the most recent state of the project’s source code as a workspace. You don’t need the curl project’s sources, so if you succeeded with this step, you can delete the directory and its contents.