This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/reference/universe/git.md
Andrea Luzzardi 940d9ccfee docs: fix non-escaped URLs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:40:08 -07:00

54 lines
1.6 KiB
Markdown

---
sidebar_label: git
---
# dagger.io/git
## #CurrentBranch
Get the name of the current checked out branch or tag
### #CurrentBranch Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*repository* | `dagger.#Artifact` |- |
### #CurrentBranch Outputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*name* | `string` |- |
## #Repository
A git repository
### #Repository Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*remote* | `string` |Git remote. Example: `"https://github.com/dagger/dagger"` |
|*ref* | `string` |Git ref: can be a commit, tag or branch. Example: "main" |
|*subdir* | `*null \| string` |(optional) Subdirectory |
### #Repository Outputs
_No output._
## #Tags
List tags of a repository
### #Tags Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*repository* | `dagger.#Artifact` |- |
### #Tags Outputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*tags* | `[]` |- |