Drone plugins > Git
Git
by drone-plugins
The git plugin is used to clone a git repository. Note that Drone uses the git plugin by default for all repositories, without any configuration required.
Example
kind: pipeline
name: default
steps:
- name: clone
image: plugins/git
settings:
depth: 50
Properties
depth
numberoptionalcreates a shallow clone with truncated history.
Default: none
recursive
booleanoptionalclones submodules recursively.
Default: false
skip_verify
booleanoptionalskips the SSL verification.
Default: false
tags
booleanoptionalfetches tags when set to true.
Default: false
submodule_overrides
objectoptionaloverride submodule urls.
Default: none
submodule_update_remote
booleanoptionalpass the --remote flag to git submodule update.
Default: false