---
sidebar_label: git
# dagger.io/git
Git operations
## #CurrentBranch
Get the name of the current checked out branch or tag
### #CurrentBranch Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*repository* | `dagger.#Artifact` |Git repository |
### #CurrentBranch Outputs
|*name* | `string` |Git branch name |
## #Repository
A git repository
### #Repository Inputs
|*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
### #Tags Outputs
|*tags* | `[]` |Repository tags |