From 5af1fa762aa5bff09750a8ddbe141351b9adf807 Mon Sep 17 00:00:00 2001 From: Andrew Fontaine Date: Thu, 17 Jan 2019 17:07:07 -0500 Subject: Add `git clone` to List of Basic Git Commands `git clone` is a common entry point to collaborators on an existing project, and should be near the top, as it would be one of the first commands run when getting set up. --- doc/gitlab-basics/start-using-git.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/gitlab-basics/start-using-git.md') diff --git a/doc/gitlab-basics/start-using-git.md b/doc/gitlab-basics/start-using-git.md index 0d9994c9925..f897083afb8 100644 --- a/doc/gitlab-basics/start-using-git.md +++ b/doc/gitlab-basics/start-using-git.md @@ -68,6 +68,20 @@ git config --global --list ## Basic Git commands +### Clone down a repository + +This is for you to get a copy of the repository from a ongoing project, where REPOSITORY-URL is the url to your git repository. It will be placed in a folder that has the same name as your repository by default. +```bash +git clone REPOSITORY-URL +``` + +Once your repository is cloned, you can change your working directory to the new folder and use the other commands below. + +``` +cd REPOSITORY +``` + + ### Go to the master branch to pull the latest changes from there ```bash -- cgit v1.2.1