From ad377aa39730ea5d541bdb8e77ba591394d656bf Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Fri, 3 May 2024 16:06:40 +0100 Subject: [PATCH] Add cloning an existing repository --- getting-code.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/getting-code.md b/getting-code.md index 81032cc..70abcde 100644 --- a/getting-code.md +++ b/getting-code.md @@ -81,6 +81,22 @@ git push -uf origin main This will now sync all your your files up to the remote repository. +## Cloning an existing repository + +If you want to pull code from an existing repository you have two options. SSH and HTTPS, if you have permissions on the project (you can push code to it) you should use SSH, if you are just pulling some code to run then HTTPS is fine but default to using SSH if you can. + +The repository will have a code button on the right hand side of the page that when you click it, it will give you the options of cloning by SSH or HTTPS, you my also get options to download the repository as a zip or tgz file also. + +![Clone Repository](./img/clone-repo.png) + +Once you have the URL you can run **clone** command. + +```bash +git clone +``` + +Now you can change directory into that new folder and start working. + --- ##### Follow me for more guides