From 6438df3a1e0fb944485cebf07976160184697d72 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Wed, 20 Jan 2021 13:34:23 -0600 Subject: Add latest changes from gitlab-org/gitlab@13-8-stable-ee --- doc/gitlab-basics/create-branch.md | 2 +- doc/gitlab-basics/create-project.md | 2 ++ doc/gitlab-basics/start-using-git.md | 11 +++++------ 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'doc/gitlab-basics') diff --git a/doc/gitlab-basics/create-branch.md b/doc/gitlab-basics/create-branch.md index c971ff7cb52..3697ae34bf9 100644 --- a/doc/gitlab-basics/create-branch.md +++ b/doc/gitlab-basics/create-branch.md @@ -9,7 +9,7 @@ type: howto A branch is an independent line of development in a [project](../user/project/index.md). -When you create a new branch (in your [terminal](start-using-git.md) or with +When you create a new branch (in your [terminal](start-using-git.md#create-a-branch) or with [the web interface](../user/project/repository/web_editor.md#create-a-new-branch)), you are creating a snapshot of a certain branch, usually the main `master` branch, at its current state. From there, you can start to make your own changes without diff --git a/doc/gitlab-basics/create-project.md b/doc/gitlab-basics/create-project.md index 30f467c2b12..c4fe522e6a2 100644 --- a/doc/gitlab-basics/create-project.md +++ b/doc/gitlab-basics/create-project.md @@ -145,6 +145,8 @@ git push --set-upstream git@gitlab.example.com:namespace/nonexistent-project.git git push --set-upstream https://gitlab.example.com/namespace/nonexistent-project.git master ``` +You can pass the flag `--tags` to the `git push` command to export existing repository tags. + Once the push finishes successfully, a remote message indicates the command to set the remote and the URL to the new project: diff --git a/doc/gitlab-basics/start-using-git.md b/doc/gitlab-basics/start-using-git.md index 22b10c32434..7f3e90dc6bd 100644 --- a/doc/gitlab-basics/start-using-git.md +++ b/doc/gitlab-basics/start-using-git.md @@ -167,14 +167,13 @@ original repository if you'd like. ### Download vs clone -To create a copy of a remote repository files on your computer, you can either -**download** or **clone** it. If you download it, you cannot sync it with the +To create a copy of a remote repository's files on your computer, you can either +**download** or **clone**. If you download, you cannot sync it with the remote repository on GitLab. -On the other hand, by cloning a repository, you'll download a copy of its -files to your local computer, but preserve the Git connection with the remote -repository, so that you can work on the its files on your computer and then -upload the changes to GitLab. +Cloning a repository is the same as downloading, except it preserves the Git connection +with the remote repository. This allows you to modify the files locally and +upload the changes to the remote repository on GitLab. ### Pull and push -- cgit v1.2.3