Template:Gitlab clone

Revision as of 06:09, 2 March 2016 by Bugman (Talk | contribs) (Created the {{gitlab clone}} template.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Revision as of 06:09, 2 March 2016 by Bugman (Talk | contribs) (Created the {{gitlab clone}} template.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

git clone https://gitlab.com


The following template description is not displayed when the template is inserted in an article.

Goal

To provide a consistent representation of the command to clone GitLab repositories.

Usage

{{openscenegraph co
| opt    =
| proj   = 
| repo   = 
| path   =
| post   =
}}
opt
Any additional options to show after git clone.
proj
The name of the project, consisting of a grouping of repositories on the open source infrastructure.
repo
The name of the repository. A GitLab project allows for multiple repositories under that project name.
post
Any optional text to show after the URL.

Example

This should produce the text svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg.

{{openscenegraph co}}

svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg

Checkout of trunk with user name

This should produce the text git clone -v https://gitlab.com/extra500/extra500.git.

{{#tag:code|{{gitlab clone
| opt  = -v
| proj = extra500
| repo = extra500
}}}}.

git clone -v https://gitlab.com/extra500/extra500.git.

Related templates