-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The question in this exercise is "Which command(s) would you use to get a detailed list of contents of the directory you have just cloned?" but the solution shows how to do the clone, it does not give the answer to the question.
python-intermediate-development-earth-sciences/episodes/11-software-project.md
Lines 117 to 162 in 144522d
| ## Exercise: Obtain the Software Project Locally | |
| Using the command line, clone the copied repository | |
| from your GitHub account into the home directory on your computer using SSH. | |
| Which command(s) would you use to get a detailed list of contents of the directory you have just cloned? | |
| ::::::::::::::: solution | |
| ## Solution | |
| 1. Find the SSH URL of the software project repository to clone from your GitHub account. | |
| Make sure you do not clone the original template repository but rather your own copy, | |
| as you should be able to push commits to it later on. | |
| Also make sure you select the **SSH** tab and not the **HTTPS** one - | |
| for this course, SSH is the preferred way of authenticating when sending your changes back to GitHub. | |
| {alt='URL to clone the repository in GitHub' .image-with-shadow width="800px" } | |
| 2. Make sure you are located in your home directory in the command line with: | |
| ```bash | |
| $ cd ~ | |
| ``` | |
| 3. From your home directory in the command line, do: | |
| ```bash | |
| $ git clone git@github.com:<YOUR_GITHUB_USERNAME>/python-intermediate-rivercatchment.git | |
| ``` | |
| Make sure you are cloning your copy of the software project and not the template repository. | |
| 4. Navigate into the cloned repository folder in your command line with: | |
| ```bash | |
| $ cd python-intermediate-rivercatchment | |
| ``` | |
| Note: If you have accidentally copied the **HTTPS** URL of your repository instead of the SSH one, | |
| you can easily fix that from your project folder in the command line with: | |
| ```bash | |
| $ git remote set-url origin git@github.com:<YOUR_GITHUB_USERNAME>/python-intermediate-catchment.git | |
| ``` | |
| ::::::::::::::::::::::::: |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels