diff options
author | Andrew Fontaine <afontaine@gitlab.com> | 2019-01-17 17:07:07 -0500 |
---|---|---|
committer | Andrew Fontaine <afontaine@gitlab.com> | 2019-01-17 17:07:07 -0500 |
commit | 5af1fa762aa5bff09750a8ddbe141351b9adf807 (patch) | |
tree | 265ce702408f47fa428789c8c19beda66d06b02a | |
parent | 7804862923d855b37cc548156c9201069d9bce20 (diff) | |
download | gitlab-ce-5af1fa762aa5bff09750a8ddbe141351b9adf807.tar.gz |
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.
-rw-r--r-- | doc/gitlab-basics/start-using-git.md | 14 |
1 files changed, 14 insertions, 0 deletions
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 |