Step 13

GitHub makes it easy to share your coding projects. The process of downloading a GitHub repository to your computer is called cloning. When you clone you get a copy of the history, and it is a functional git repo. Downloading a repository just downloads the files from the most recent commit. Let's try it.

In the terminal, type in cd .. to change the directory to the parent folder that contains the sleeptime-git folder.

Next, run the following command to delete the sleeptime-git folder and all its content.

rm -rf sleeptime-git 

Finally, run the following command but replace <repository> with the URL of your GitHub repository (the one we made in the previous steps. For example, mine is https://github.com/cs280fa21/sleeptime-git).

git clone <repository>

You now should have a sleeptime-git folder again. This is a clone (a copy) of the GitHub repository.