Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-1788

[LANGUAGE] Consistency for git clone repo ; cd repo

XMLWordPrintable

    • 3

      Current documentation is not consistent about the way to express

      . Clone the `foo` repository:
      +
      ----
      $ git clone https://github.com/che-incubator/foo
      $ cd foo
      ----
      

      We should decide for the preferred wording for these actions and use always the same.

      Current state is following:

      grep -B5 -A1 -re "git clone" src/main/pages/
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-=== Building offline plug-in registry
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-. Clone the plug-in registry repository:
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-+
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-----
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc:$ git clone https://github.com/eclipse/che-plugin-registry.git
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-$ cd che-plugin-registry
      --
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-=== Building offline devfile registry
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-. Clone the devfile registry repository:
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-+
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-----
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc:$ git clone https://github.com/eclipse/che-devfile-registry.git
      src/main/pages/che-7/installation-guide/assembly_installing-che-in-restricted-environment.adoc-$ cd che-devfile-registry
      --
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-. Use the link:https://code.visualstudio.com/docs/editor/versioncontrol#_cloning-a-repository[clone] command provided by the Visual Studio Code *Git* extension.
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-Alternatively, use the native Git commands in the terminal to clone a project.
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-. Navigate to destination folder using the `cd` command.
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc:. Use `git clone` to clone a repository:
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-+
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-[subs=+quotes]
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-----
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc:$ git clone _<link>_
      src/main/pages/che-7/end-user-guide/proc_accessing-a-git-repository-via-https.adoc-----
      --
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-* link:{site-baseurl}che-7/configuring-a-workspace-using-a-devfile[Add a devfile to a git repository and start the workspace using {prod-cli} or a factory]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-To create a new workspace to edit an existing codebase, use one of the following three methods *after* you have started the workspace:
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-* xref:#importing-from-the-dashboard-into-an-existing-workspace[Import from the *Dashboard* into an existing workspace]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:* xref:#importing-to-a-running-workspace-using-the-git-clone-command[Import to a running workspace using the `git clone` command]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:* xref:#importing-to-a-running-workspace-with-git-clone-in-a-terminal[Import to a running workspace using `git clone` in a terminal]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      --
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-+
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-image::workspaces/{project-context}-welcome.png[Welcome screen]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-. Open the command palette using `F1` or `CTRL-SHIFT-P`, or from the link in the Welcome screen.
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-+
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:image::workspaces/git-clone-command.png[Invoke git clone command]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-. Enter the path to the project you want to clone.
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-+
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:image::workspaces/git-clone-command-2.png[Configure git clone command]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-[id="importing-to-a-running-workspace-with-git-clone-in-a-terminal"]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:== Importing to a running workspace with `git clone` in a terminal
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:In addition to the approaches above, you can also start a workspace, open a *Terminal*, and type `git clone` to pull code.
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc:image::workspaces/git-clone-terminal.png[Run git clone in a terminal]
      src/main/pages/che-7/end-user-guide/proc_creating-a-workspace-by-importing-source-code-of-a-project.adoc-
      --
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc-*Installing*
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc-
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc-. Clone the `kubernetes-image-puller` repository:
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc-+
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc-----
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc:$ git clone https://github.com/che-incubator/kubernetes-image-puller
      src/main/pages/che-7/administration-guide/proc_deploying-kubernetes-image-puller-using-helm.adoc-$ cd kubernetes-image-puller
      --
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc-To add a devfile:
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc-
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc-. Check out the devfile registry sources.
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc-+
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc-----
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc:$ git clone https://github.com/eclipse/che-devfile-registry; \
      src/main/pages/che-7/administration-guide/proc_adding-a-devfile-at-runtime.adoc-  cd che-devfile-registry
      --
      src/main/pages/che-7/administration-guide/examples/che-clone-the-devfile-registry-repository.adoc:$ git clone git@github.com:eclipse/che-devfile-registry.git
      src/main/pages/che-7/administration-guide/examples/che-clone-the-devfile-registry-repository.adoc-$ cd che-devfile-registry
      --
      src/main/pages/che-7/administration-guide/examples/che-clone-the-plug-in-registry-repository.adoc:$ git clone git@github.com:eclipse/che-plugin-registry.git
      src/main/pages/che-7/administration-guide/examples/che-clone-the-plug-in-registry-repository.adoc-$ cd che-plugin-registry
      --
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc-To add a plug-in:
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc-
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc-. Check out the plugin registry sources.
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc-+
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc-----
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc:$ git clone https://github.com/eclipse/che-plugin-registry; \
      src/main/pages/che-7/administration-guide/proc_adding-a-plug-in-at-runtime.adoc-  cd che-plugin-registry
      --
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc-.Procedure
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc-
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc-. Install https://github.com/kubernetes-csi/csi-driver-host-path[csi-driver-host-path] in the Kind cluster.
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc-+
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc-----
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc:$ git clone https://github.com/kubernetes-csi/csi-driver-host-path && cd csi-driver-host-path
      src/main/pages/che-7/overview/proc_installing-che-on-kind-using-chectl.adoc-$ ./deploy/kubernetes-1.16/deploy-hostpath.sh
      

              Unassigned Unassigned
              ffloreth@redhat.com Fabrice Flore-Thébault
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: