Git Checkout
Ce contenu n’est pas encore disponible dans votre langue.
Switches branches or restores working tree files.
Inputs
Section titled “Inputs”| Port | Description |
|---|---|
invalid port type: git-repo Repository | The Git repository object from a clone or open node. |
| The name of the branch, tag, or the commit hash to check out. | |
| If true, creates a new branch named after the ‘Reference’ input. | |
| If true, forces the checkout, discarding any local changes in the working directory. Use with caution. |
Outputs
Section titled “Outputs”| Port | Description |
|---|---|
| Executes if the checkout operation is successful. | |
| Executes if there is an error during checkout. |
Addendum
Section titled “Addendum”This node checks out a specific branch, tag, or commit, updating the files in the working directory to match that version.
It can also be used to create a new branch from the current HEAD.
ID: core/git-checkout@v1