Aller au contenu

Git Stage

Ce contenu n’est pas encore disponible dans votre langue.

Stages file changes in the working directory for the next commit (git add).

PortDescription
invalid port type: git-repo Repository
The Git repository object from a clone or open node.
Paths
A list of file paths or glob patterns to stage. Use ’.’ to stage all changes.
PortDescription
Success
Executes if the files are staged successfully.
Error
Executes if there is an error during staging.

This node adds file contents to the index (the staging area). You can provide specific file paths or glob patterns.

The repo input should be connected to the output of a git-clone or git-open node.

  • To stage all changes in the repository, provide a single path: .
  • To stage all .go files in the src directory: src/**/*.go

ID: core/git-stage@v1